mirror of https://github.com/secdev/scapy.git
Merge pull request #597 from p-l-/fix-flags
FlagValue: use consistant (always a string) output
This commit is contained in:
commit
d05b9bae02
|
@ -1053,7 +1053,7 @@ class FlagValue(object):
|
|||
r.append(self.names[i])
|
||||
i += 1
|
||||
x >>= 1
|
||||
return ("+" if self.multi else "").join(r) if r else int(self)
|
||||
return ("+" if self.multi else "").join(r)
|
||||
def __repr__(self):
|
||||
return "<Flag %d (%s)>" % (self, self.flagrepr())
|
||||
def __deepcopy__(self, memo):
|
||||
|
|
Loading…
Reference in New Issue