Skip to content

Commit 0be8d33

Browse files
committed
PEP-8: move statements onto separate lines
1 parent 4aec2b7 commit 0be8d33

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

bagit.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ def _load_manifests(self):
394394
line = line.strip()
395395

396396
# Ignore blank lines and comments.
397-
if line == "" or line.startswith("#"): continue
397+
if line == "" or line.startswith("#"):
398+
continue
398399

399400
entry = line.split(None, 1)
400401

@@ -444,7 +445,9 @@ def _validate_contents(self, processes=1, fast=False):
444445

445446
def _validate_oxum(self):
446447
oxum = self.info.get('Payload-Oxum')
447-
if oxum == None: return
448+
449+
if oxum is None:
450+
return
448451

449452
# If multiple Payload-Oxum tags (bad idea)
450453
# use the first listed in bag-info.txt

0 commit comments

Comments
 (0)