From 645a2fe6d2349153067383b7800c8e5ae7f180fc Mon Sep 17 00:00:00 2001 From: Pierre LALET Date: Fri, 7 Apr 2017 08:21:30 +0200 Subject: [PATCH] FlagValue: use consistant (always a string) output --- scapy/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/fields.py b/scapy/fields.py index 86ccf7816..0843adc42 100644 --- a/scapy/fields.py +++ b/scapy/fields.py @@ -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 "" % (self, self.flagrepr()) def __deepcopy__(self, memo):