LibraryOfCongress / bagit-python

Work with BagIt packages from Python.
http://libraryofcongress.github.io/bagit-python
216 stars 85 forks source link

Fix SyntaxWarning with is against literal #144

Closed zimeon closed 4 years ago

zimeon commented 4 years ago

Trivial fix to remove warning with current pythons:

bagit-python> python --version
Python 3.8.1
bagit-python> python test.py
.../bagit.py:634: SyntaxWarning: "is not" with a literal. Did you mean "!="?  if not manifest_filename.find("tagmanifest-") is -1:
coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.09%) to 83.272% when pulling 01ebd87b630d1c18049473a4706c98ac71f33390 on zimeon:fix-syntax-warning into 4b76c143e61d815043f1e8bdfbb159ce98f7d978 on LibraryOfCongress:master.