Update wrapper.py
This commit is contained in:
parent
7d434c3f0f
commit
8acb14a243
@ -43,7 +43,7 @@ def save(url,UA=default_UA):
|
||||
def get(url,encoding=None,UA=default_UA):
|
||||
hdr = { 'User-Agent' : '%s' % UA }
|
||||
request_url = clean_url(url)
|
||||
req = Request(request_url, headers=hdr)
|
||||
req = Request(request_url, headers=hdr) #nosec
|
||||
resp=urlopen(req) #nosec
|
||||
if encoding is None:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user