Permalink
Browse files

oops. was writing magic twice.

  • Loading branch information...
stnbu committed Sep 29, 2018
1 parent bea90fd commit a2b0893d1453c78bc5c5abcadf1b2604b0461805
Showing with 3 additions and 1 deletion.
  1. +3 −1 patch.py
@@ -20,7 +20,9 @@ def patch_files(paths):
for line in orig:
if name_main_re.match(line):
new.write(magic)
new.write(line)
new.write(line)
else:
new.write(line)
else:
new.write(magic)
orig.close()

0 comments on commit a2b0893

Please sign in to comment.