Skip to content

Commit 4aec2b7

Browse files
committed
PEP-8: use not in instead of not … in
1 parent c9a7918 commit 4aec2b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bagit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ def _load_tag_file(tag_file_name):
645645
# in order of parsing under the same key.
646646
tags = {}
647647
for name, value in _parse_tags(tag_file):
648-
if not name in tags:
648+
if name not in tags:
649649
tags[name] = value
650650
continue
651651

@@ -684,7 +684,7 @@ def _parse_tags(file):
684684
if tag_name:
685685
yield (tag_name, tag_value.strip())
686686

687-
if not ':' in line:
687+
if ':' not in line:
688688
raise BagValidationError("invalid line '%s' in %s" % (line.strip(), os.path.basename(file.name)))
689689

690690
parts = line.strip().split(':', 1)

0 commit comments

Comments
 (0)