Skip to content

Python3 error with bencode #10

@bobbintb

Description

@bobbintb

I'm using this with Python 3.9. Seems to me to be a compatibility error with the sorted method.

bencode.py line 136, in encode
for key, val in sorted(obj.items()):
TypeError: '<' not supported between instances of 'bytes' and 'str'

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