Remove redundant declarations
This commit is contained in:
parent
6348c2d4fa
commit
e02333f715
5
buku.py
5
buku.py
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user