Doesn't work on Python3.8.5
Buster-2002 opened this issue · comments
Buster commented
Following your example I wrote:
import urbandict
defs = urbandict.define(search)
print(defs)
# gives: [{'word': 'xterm', 'def': 'Godly', 'example': 'I wish', 'category': ''}]
and not the expected
[{'word': 'xterm', 'example': 'I wish i was an xterm', 'def': 'Godly creature, omnipotent, guru in every way imaginable.'}]
Roman Bogorodskiy commented
Hm, it doesn't seem the problem is related to the Python version, it looks like formatting was changed again.
stck-lzm commented
yeah, and I found the culprit I think....
whenever the handle_endtag function is defined, remove the 'a' tag in the if condition