Permalink
Browse files

Remove support for inflating gzipped files

  • Loading branch information...
1 parent baf4f9c commit 1205101d8ac2725963a8b585dbf7490fab904b90 @ch4rr0 ch4rr0 committed Jun 6, 2017
Showing with 3 additions and 7 deletions.
  1. +3 −7 bowtie
View
10 bowtie
@@ -28,15 +28,11 @@ def main():
for i, arg in enumerate(sys.argv[1:]):
if arg.startswith('-'):
continue
- if arg.lower().endswith(('.gz', '.Z', '.bz', '.bz2')):
+ if arg.lower().endswith(('.bz', '.bz2')):
basename, ext = os.path.splitext(arg.lower())
out_file = open(basename, 'wb')
- if ext in ('.gz', '.z'):
- import gzip
- out_file.write(gzip.open(arg, 'rb').read())
- elif ext in ('.bz2', '.bz'):
- import bz2
- out_file.write(bz2.BZ2File(arg).read())
+ import bz2
+ out_file.write(bz2.BZ2File(arg).read())
out_file.close()
sys.argv[i+1] = basename

0 comments on commit 1205101

Please sign in to comment.