Skip to content

Commit

Permalink
fix test failure for bytematrix on python2
Browse files Browse the repository at this point in the history
  • Loading branch information
robhagemans committed Nov 6, 2021
1 parent b2248ae commit c42e32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcbasic/basic/base/bytematrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _create_from_rows(cls, data):
@classmethod
def frompacked(cls, packed, height, items_per_byte):
"""Unpack from packed-bits representation."""
packed = tuple(packed)
packed = bytes(packed)
if not packed or not height:
return cls(0, 0)
width = len(packed) // height
Expand Down

0 comments on commit c42e32b

Please sign in to comment.