From c2f2f4c0a53be9fd41992451bce99eb5a410c97a Mon Sep 17 00:00:00 2001 From: hakril Date: Fri, 28 Dec 2018 21:13:40 +0100 Subject: [PATCH] Flag repr does not print long 'L' at the end of hex value --- ctypes_generation/definitions/flag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctypes_generation/definitions/flag.py b/ctypes_generation/definitions/flag.py index 2d5158f..8982d11 100644 --- a/ctypes_generation/definitions/flag.py +++ b/ctypes_generation/definitions/flag.py @@ -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__