Typo in UA_HTML var name

master
pictuga 2013-09-25 11:11:11 +02:00
parent 4a5cbcfd18
commit 03014a8cbf
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ TIMEOUT = 2 # http timeout (in sec)
DEBUG = False DEBUG = False
UA_RSS = 'Liferea/1.8.12 (Linux; fr_FR.utf8; http://liferea.sf.net/)' 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'] PROTOCOL = ['http', 'https', 'ftp']
@ -169,7 +169,7 @@ class HTMLDownloader(urllib2.HTTPCookieProcessor):
Custom urllib2 handler to download html pages, following <meta> redirects, Custom urllib2 handler to download html pages, following <meta> redirects,
using a browser user-agent and storing cookies. 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) urllib2.HTTPCookieProcessor.__init__(self, cookiejar)
self.useragent = useragent self.useragent = useragent