Remove redundant declarations

This commit is contained in:
Arun Prakash Jana 2017-03-04 22:48:56 +05:30
parent 6348c2d4fa
commit e02333f715
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -1734,16 +1734,15 @@ def network_handler(url, http_head=False):
:return: (title, recognized mime, bad url) tuple
'''
http_handler = None
page_title = None
resp = None
method = 'GET'
if is_bad_url(url):
return ('', 0, 1)
if is_ignored_mime(url) or http_head:
method = 'HEAD'
else:
method = 'GET'
if not myheaders:
gen_headers()