Flag repr does not print long 'L' at the end of hex value

This commit is contained in:
hakril
2018-12-28 21:13:40 +01:00
parent 771593f17d
commit c2f2f4c0a5
+1 -1
View File
@@ -12,7 +12,7 @@ class Flag(long):
self.name = name
def __repr__(self):
return "{0}({1})".format(self.name, hex(self))
return "{0}({1:#x})".format(self.name, self)
__str__ = __repr__