bencode
bencode copied to clipboard
*Originally sent to [email protected] but since his mail does not exist anymore posting this here.* Hello Thomas, the bencode Package you distribute via pypi does not work with recent Python...
ImportError: cannot import name 'StringType' from 'types' (/usr/lib/python3.7/types.py) File "/home/muad/workbench/gitlab/OutOfGears/sickbeard/providers/rsstorrent.py", line 24, in from bencode import bdecode File "/home/muad/workbench/gitlab/OutOfGears/venv/lib/python3.7/site-packages/bencode.py", line 73, in from types import StringType, IntType, LongType, DictType, ListType,...
Makes it not crash with a KeyError when passed data of unicode type. Just utf-8 encodes the unicode to a str.