williballenthin / python-evtx

Pure Python parser for Windows Event Log files (.evtx)
Apache License 2.0
732 stars 166 forks source link

Evtx.py - Python 3: sys.maxint constant was removed, use sys.maxsize instead #52

Closed ghost closed 6 years ago

ghost commented 6 years ago

https://github.com/williballenthin/python-evtx/blob/master/Evtx/Evtx.py#L232

https://docs.python.org/3.1/whatsnew/3.0.html#integers

The sys.maxint constant was removed, since there is no longer a limit to the value of integers. However, sys.maxsize can be used as an integer larger than any practical list or string index. It conforms to the implementation’s “natural” integer size and is typically the same as sys.maxint in previous releases on the same platform (assuming the same build options).

Thank you! Best regards!

williballenthin commented 6 years ago

great catch, thanks!