Skip to content

Commit

Permalink
Fix for issue jjhelmus#64.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Lawrence committed Jan 7, 2025
1 parent b7ba6b2 commit ca1b6d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyfive/dataobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ def compression_opts(self):
if GZIP_DEFLATE_FILTER in self._filter_ids:
gzip_entry = [d for d in self.filter_pipeline
if d['filter_id'] == GZIP_DEFLATE_FILTER][0]
return gzip_entry['client_data'][0]
key = {0:'client_data_values',1:'client_data'}['client_data' in gzip_entry]
return gzip_entry[key][0]
return None

@property
Expand Down

0 comments on commit ca1b6d6

Please sign in to comment.