Closed nsoranzo closed 5 years ago
hashlib.algorithms_guaranteed was introduced only in Python 2.7.9, see https://docs.python.org/2.7/library/hashlib.html#hashlib.algorithms_guaranteed
hashlib.algorithms_guaranteed
Ubuntu 14.04 LTS (which will be supported until April 2019) still provides python 2.7.5 and therefore needs this fix.
Tested on python 2.7.3, 2.7.5, 2.7.12 and 3.5.3.
xref. https://github.com/LibraryOfCongress/bagit-python/pull/110/files/1e8c9102ca004ffe19984ac2eceaee8f0d616dfd#r238885995
Coverage decreased (-1.3%) to 82.252% when pulling 6b25e39bc92f48468439ecd4316d6f9cde741d59 on nsoranzo:patch-1 into c39b650a80837a1d32314599143d0b5b04159248 on LibraryOfCongress:master.
I merged this since it's small but also added a flag for the cleanup in #102
Thanks @acdha!
hashlib.algorithms_guaranteed
was introduced only in Python 2.7.9, see https://docs.python.org/2.7/library/hashlib.html#hashlib.algorithms_guaranteedUbuntu 14.04 LTS (which will be supported until April 2019) still provides python 2.7.5 and therefore needs this fix.
Tested on python 2.7.3, 2.7.5, 2.7.12 and 3.5.3.
xref. https://github.com/LibraryOfCongress/bagit-python/pull/110/files/1e8c9102ca004ffe19984ac2eceaee8f0d616dfd#r238885995