From 03014a8cbf366bb01cf3dab1039099878486ea55 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 25 Sep 2013 11:11:11 +0200 Subject: [PATCH] Typo in UA_HTML var name --- morss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/morss.py b/morss.py index 7926a1a..3af3c3d 100644 --- a/morss.py +++ b/morss.py @@ -34,7 +34,7 @@ TIMEOUT = 2 # http timeout (in sec) DEBUG = False UA_RSS = 'Liferea/1.8.12 (Linux; fr_FR.utf8; http://liferea.sf.net/)' -UA_HML = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11' +UA_HTML = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11' PROTOCOL = ['http', 'https', 'ftp'] @@ -169,7 +169,7 @@ class HTMLDownloader(urllib2.HTTPCookieProcessor): Custom urllib2 handler to download html pages, following redirects, using a browser user-agent and storing cookies. """ - def __init__(self, useragent=UA_HML, cookiejar=None): + def __init__(self, useragent=UA_HTML, cookiejar=None): urllib2.HTTPCookieProcessor.__init__(self, cookiejar) self.useragent = useragent