Skip to content

Commit

Permalink
improvements: Add FIXME for 'b' prefix
Browse files Browse the repository at this point in the history
When composing the mapping table, codes for the characters are prefixed
with 'b', causing some inconsistency. It would be better to leave only
the binary representation, if possible.
  • Loading branch information
rmariano committed Apr 22, 2017
1 parent 7e86873 commit 72f879f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compressor/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ def retrieve_table(dest_file: io) -> dict:

chars = unpack('{}c'.format(offset), chars)
codes = unpack('{}L'.format(offset), codes)
# FIXME: Remove 'b' prefix
return {"b{0}".format(tobinary(code)): str(char, encoding=ENC)
for char, code in zip(chars, codes)}

Expand Down

0 comments on commit 72f879f

Please sign in to comment.