Skip to content
Snippets Groups Projects
Commit 669a62cf authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Merged in p-l/scapy (pull request #155)

Fix EnumElement().get() (typo)
parents f077e70a a9e93573
No related branches found
No related tags found
No related merge requests found
......@@ -460,7 +460,7 @@ class Enum_metaclass(type):
def __contains__(self, val):
return val in self.__rdict__
def get(self, attr, val=None):
return self._rdict__.get(attr, val)
return self.__rdict__.get(attr, val)
def __repr__(self):
return "<%s>" % self.__dict__.get("name", self.__name__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment