From: Adam Sampson Date: Sat, 13 Jul 2013 16:36:42 +0000 (+0000) Subject: Avoid using keyword arg to decode(), for Python 2.6. X-Git-Tag: v2.15~2 X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;h=8954f7a81eb94356bdfdf94424fe7d81b09b22e9;p=rawdog%2F.git Avoid using keyword arg to decode(), for Python 2.6. errors= works with Python 2.7, but not with 2.6. But just passing the unnamed argument is safe either way. --- diff --git a/rawdoglib/feedscanner.py b/rawdoglib/feedscanner.py index 9557688..a9bc0cd 100644 --- a/rawdoglib/feedscanner.py +++ b/rawdoglib/feedscanner.py @@ -100,7 +100,7 @@ def feeds(page_url): f = urllib.urlopen(page_url) # Silently ignore encoding errors -- we don't need to go to the bother of # detecting the encoding properly (like feedparser does). - data = f.read().decode("UTF-8", errors="ignore") + data = f.read().decode("UTF-8", "ignore") f.close() parser = FeedFinder(page_url)