Skip to content

Python 3 Compatibility #29

Description

@Adamtaranto

Lines 250 and 285 in histogram.py cause the Python3 print function to bug out when trying to parse the default "options.dot" character, "∎".

Throwing an error like this:

Traceback (most recent call last):

File "/user/bin/Filtlong/scripts/histogram.py", line 325, in
options.agg_key_value), options)

File "/user/bin/Filtlong/scripts/histogram.py", line 250, in histogram
print("Each " + options.dot + " represents %s bases" % bucket_scale_str)

UnicodeEncodeError: 'latin-1' codec can't encode character '\u220e' in position 5: ordinal not in range(256)

I haven't been able to figure out how to get the block to render with py3 but replacing the default dot character with '*' seems to do the job.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions