srob650 / pytvmaze

Python interface to the TV Maze API (www.tvmaze.com)
Other
26 stars 15 forks source link

Dict ordering in python3 #5

Closed brookesy2 closed 9 years ago

brookesy2 commented 9 years ago

Fuzzy matching will produce the below error in python3:

File "/usr/local/lib/python3.4/dist-packages/pytvmaze/tvmaze.py", line 93, in get_show s = fuzzymatch.fuzzy_search(search_text, results) File "/usr/local/lib/python3.4/dist-packages/pytvmaze/fuzzymatch.py", line 115, in fuzzy_search return max(matches, key=lambda key: matches[key]) TypeError: unorderable types: dict() > dict()

More detail here I believe. http://stackoverflow.com/questions/22333388/dicts-are-not-orderable-in-python-3

I will try work up a pull request.

brookesy2 commented 9 years ago

Pull request: https://github.com/srob650/pytvmaze/pull/8