We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
not in
not … in
1 parent c9a7918 commit 4aec2b7Copy full SHA for 4aec2b7
1 file changed
bagit.py
@@ -645,7 +645,7 @@ def _load_tag_file(tag_file_name):
645
# in order of parsing under the same key.
646
tags = {}
647
for name, value in _parse_tags(tag_file):
648
- if not name in tags:
+ if name not in tags:
649
tags[name] = value
650
continue
651
@@ -684,7 +684,7 @@ def _parse_tags(file):
684
if tag_name:
685
yield (tag_name, tag_value.strip())
686
687
- if not ':' in line:
+ if ':' not in line:
688
raise BagValidationError("invalid line '%s' in %s" % (line.strip(), os.path.basename(file.name)))
689
690
parts = line.strip().split(':', 1)
0 commit comments