1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-07 06:59:38 +00:00

remove needless paren

This commit is contained in:
Antoine Beaupré 2015-10-02 09:43:10 -04:00
parent 3e7fa0d633
commit 081b91bea0

View file

@ -69,7 +69,7 @@ def header_replace(filename, old_magic, new_magic):
with open(filename, 'r+b') as segment: with open(filename, 'r+b') as segment:
segment.seek(0) segment.seek(0)
# only write if necessary # only write if necessary
if (segment.read(len(old_magic)) == old_magic): if segment.read(len(old_magic)) == old_magic:
segment.seek(0) segment.seek(0)
segment.write(new_magic) segment.write(new_magic)