From d5f51f6843ffa1d375e947a5cb03965b5291129d Mon Sep 17 00:00:00 2001 From: Pierre LALET <pierre.lalet@cea.fr> Date: Fri, 18 Oct 2013 18:06:33 +0200 Subject: [PATCH] Fix a non-ASCII character. A wrong char prevents inet6 from being loaded (and thus, a lot of modules): WARNING: can't import layer inet: Non-ASCII character '\xc2' in file scapy/layers/inet6.py on line 341, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (inet6.py, line 341) ... --HG-- branch : space fix --- scapy/layers/inet6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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