diff --git a/scapy/arch/linux.py b/scapy/arch/linux.py
index abd46c7483f2ecf4ded98a2035373e89670e8f3d..8943271816b58fe45dcba4e3d0fe403c17cc57c4 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 3de5a55cec7fcf2f8bfb9fe385997e6c2d206824..504744d884167b47c77c455962e4cea78a029f22 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")