From 3e9a7c2e5fb1771fbfdec56a1f6722d133a26985 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 7 Sep 2016 15:06:52 +0200 Subject: [PATCH] python3 fixes --- ox/web/imdb.py | 2 +- ox/web/wikipedia.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index c46a117..2547d86 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -802,7 +802,7 @@ def get_episodes(imdbId, season=None): def max_votes(): url = 'http://www.imdb.com/search/title?num_votes=500000,&sort=num_votes,desc' - data = cache.read_url(url) + data = cache.read_url(url).decode('utf-8', 'ignore') votes = max([ int(v.replace(',', '')) for v in re.compile('