diff --git a/pefile.py b/pefile.py index f804678..334b9cd 100644 --- a/pefile.py +++ b/pefile.py @@ -40,8 +40,6 @@ codecs.register_error("backslashreplace_", codecs.lookup_error("backslashreplace")) -long = int - # lru_cache with a shallow copy of the objects returned (list, dicts, ..) # we don't use deepcopy as it's _really_ slow and the data we retrieved using @@ -1062,7 +1060,7 @@ def dump(self, indentation=0): for keys in self.__keys__: for key in keys: val = getattr(self, key) - if isinstance(val, (int, long)): + if isinstance(val, int): if key.startswith("Signature_"): val_str = "{:<8X}".format(val) else: @@ -1112,7 +1110,7 @@ def dump_dict(self): for keys in self.__keys__: for key in keys: val = getattr(self, key) - if isinstance(val, (int, long)): + if isinstance(val, int): if key == "TimeDateStamp" or key == "dwTimeStamp": try: val = "0x%-8X [%s UTC]" % (