diff --git a/pywraps/py_idaapi.py b/pywraps/py_idaapi.py index 893e66d..cf25d3c 100644 --- a/pywraps/py_idaapi.py +++ b/pywraps/py_idaapi.py @@ -694,8 +694,7 @@ class IDAPython_displayhook: storage.append(str(item)) def _print_hex(self, x): - s = hex(x) - return s[0:-1] if s.endswith("L") else s + return hex(x).rstrip('L') def displayhook(self, item): if item is None or type(item) is bool: