Skip to content

Commit

Permalink
Add back bytes cast
Browse files Browse the repository at this point in the history
  • Loading branch information
gliptak authored Feb 5, 2024
1 parent 9d1c98c commit 37e6d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snappy/snappy.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def uncompress(data, decoding=None):
if isinstance(data, unicode):
raise UncompressError("It's only possible to uncompress bytes")
if decoding:
return _uncompress(data).decode(decoding)
return _uncompress(data)
return bytes(_uncompress(data)).decode(decoding)
return bytes(_uncompress(data))

decompress = uncompress

Expand Down

0 comments on commit 37e6d90

Please sign in to comment.