mirror of
https://github.com/borgbackup/borg.git
synced 2026-02-20 00:10:35 -05:00
style: don't use continue for nothing
This commit is contained in:
parent
efbad396f4
commit
c2913f5f10
1 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue