From 745361fa6131ace8affeb12944a3ce274d2175ac Mon Sep 17 00:00:00 2001 From: Guillaume Valadon <guillaume.valadon@ssi.gouv.fr> Date: Fri, 31 Jan 2014 14:41:28 +0100 Subject: [PATCH] Fixing indentation --HG-- branch : Issue #5061 --- scapy/arch/linux.py | 8 ++++---- scapy/layers/inet6.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scapy/arch/linux.py b/scapy/arch/linux.py index abd46c74..89432718 100644 --- a/scapy/arch/linux.py +++ b/scapy/arch/linux.py @@ -90,10 +90,10 @@ def get_if_raw_addr(iff): def get_if_list(): try: - f=open("/proc/net/dev","r") + f=open("/proc/net/dev","r") except IOError: warning("Can't open /proc/net/dev !") - return [] + return [] lst = [] f.readline() f.readline() @@ -150,10 +150,10 @@ def set_promisc(s,iff,val=1): def read_routes(): try: - f=open("/proc/net/route","r") + f=open("/proc/net/route","r") except IOError: warning("Can't open /proc/net/route !") - return [] + return [] routes = [] s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) ifreq = ioctl(s, SIOCGIFADDR,struct.pack("16s16x",LOOPBACK_NAME)) diff --git a/scapy/layers/inet6.py b/scapy/layers/inet6.py index 3de5a55c..504744d8 100644 --- a/scapy/layers/inet6.py +++ b/scapy/layers/inet6.py @@ -338,7 +338,7 @@ class _IPv6GuessPayload: if len(p) >= icmp6typesminhdrlen.get(t, sys.maxint): # Other ICMPv6 messages return get_cls(icmp6typescls.get(t,"Raw"), "Raw") return Raw - elif self.nh == 135 and len(p) > 3: #Â Mobile IPv6 + elif self.nh == 135 and len(p) > 3: # Mobile IPv6 return _mip6_mhtype2cls.get(ord(p[2]), MIP6MH_Generic) else: return get_cls(ipv6nhcls.get(self.nh,"Raw"), "Raw") -- GitLab