style: don't use continue for nothing

This commit is contained in:
Antoine Beaupré 2015-10-01 08:40:56 -04:00
parent efbad396f4
commit c2913f5f10

View file

@ -39,11 +39,10 @@ class AtticRepositoryConverter(Repository):
replace the 8 first bytes of all regular files in there."""
for filename in segments:
print("converting segment %s in place" % filename)
if dryrun:
continue
with open(filename, 'r+b') as segment:
segment.seek(0)
segment.write(MAGIC)
if not dryrun:
with open(filename, 'r+b') as segment:
segment.seek(0)
segment.write(MAGIC)
def find_attic_keyfile(self):
"""find the attic keyfiles