wordpress-xmlrpc: use str type for pycurl urls
This commit is contained in:
parent
93789f0d07
commit
fc07af26f6
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class MyHTMLParser(HTMLParser):
|
|||
pass
|
||||
fp = open(filename, "wb")
|
||||
curl = pycurl.Curl()
|
||||
curl.setopt(pycurl.URL, url)
|
||||
curl.setopt(pycurl.URL, str(url))
|
||||
curl.setopt(pycurl.FOLLOWLOCATION, 1)
|
||||
curl.setopt(pycurl.MAXREDIRS, 5)
|
||||
curl.setopt(pycurl.CONNECTTIMEOUT, 30)
|
||||
|
|
Loading…
Reference in a new issue