Skip to content

Commit

Permalink
fix gzip uncompressed_size
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Nov 19, 2017
1 parent 572d90e commit 9e83741
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Binary file added versioneer.py.gz
Binary file not shown.
5 changes: 0 additions & 5 deletions xphyle/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,15 +884,10 @@ def get_list_command(self, path: str) -> List[str]:
return [str(self.executable_path), '-l', path]

def parse_file_listing(self, listing: str) -> Tuple[int, int, float]:
print(listing)
parsed = re.split(' +', listing.splitlines(keepends=False)[1].strip())
print(parsed)
if self.executable_name != 'pigz':
parsed = parsed[5:8]
ratio = float(parsed[2][:-1]) / 100
return (int(parsed[0]), int(parsed[1]), ratio)


class BGzip(GzipBase):
"""bgzip is block gzip. bgzip files are compatible with gzip. Typically,
this format is only used when specifically requested, or when a bgzip
Expand Down

0 comments on commit 9e83741

Please sign in to comment.