This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author j0ffrey
Recipients j0ffrey
Date 2018-01-29.21:15:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Originally reported @

It seems that tarfile.itn() attempts to execute bitwise operations on a float if the n argument is a negative float, raising a TypeError.

As pointed out in the original report, this is an issue when converting some mtime values in TarInfo._create_header

This also happens for positive floats > 8**11 - 1, but that one is less of an issue for the next two hundred years or so.
Date User Action Args
2018-01-29 21:15:56j0ffreysetrecipients: + j0ffrey
2018-01-29 21:15:56j0ffreysetmessageid: <>
2018-01-29 21:15:56j0ffreylinkissue32713 messages
2018-01-29 21:15:56j0ffreycreate