Permalink
Browse files
Remove support for inflating gzipped files
- Loading branch information...
Showing
with
3 additions
and
7 deletions.
-
+3
−7
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