Skip to content

Commit 6e14a50

Browse files
authored
Merge pull request #144 from zimeon/fix-syntax-warning
Fix SyntaxWarning with is against literal
2 parents 4b76c14 + 01ebd87 commit 6e14a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bagit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def _load_manifests(self):
631631
manifests += list(self.tagmanifest_files())
632632

633633
for manifest_filename in manifests:
634-
if not manifest_filename.find("tagmanifest-") is -1:
634+
if manifest_filename.find("tagmanifest-") != -1:
635635
search = "tagmanifest-"
636636
else:
637637
search = "manifest-"

0 commit comments

Comments
 (0)