Skip to content

Commit

Permalink
Fix header error in outputting filtered delta file.
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaNattestad committed Jul 23, 2020
1 parent 58fb525 commit 3db5512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Assemblytics_uniq_anchor.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ def run(args):

try:
f = gzip.open(filename, 'rt')
header1 = f.readline().strip()
header1 = f.readline()
print("Detected gzipped delta file. Reading...")
except:
f = open(filename, 'r')
header1 = f.readline().strip()
header1 = f.readline()
print("Detected uncompressed delta file. Reading...")

fout.write(header1)
Expand Down

0 comments on commit 3db5512

Please sign in to comment.