Merge pull request #597 from p-l-/fix-flags

FlagValue: use consistant (always a string) output
This commit is contained in:
Guillaume Valadon 2017-04-10 14:01:53 +02:00 committed by GitHub
commit d05b9bae02
1 changed files with 1 additions and 1 deletions

View File

@ -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):