1
0
Fork 0

wordpress-xmlrpc: use str type for pycurl urls

This commit is contained in:
Aleix Conchillo Flaque 2010-12-23 02:08:24 +01:00 committed by Andy Wingo
parent 93789f0d07
commit fc07af26f6

View file

@ -56,7 +56,7 @@ class MyHTMLParser(HTMLParser):
pass pass
fp = open(filename, "wb") fp = open(filename, "wb")
curl = pycurl.Curl() curl = pycurl.Curl()
curl.setopt(pycurl.URL, url) curl.setopt(pycurl.URL, str(url))
curl.setopt(pycurl.FOLLOWLOCATION, 1) curl.setopt(pycurl.FOLLOWLOCATION, 1)
curl.setopt(pycurl.MAXREDIRS, 5) curl.setopt(pycurl.MAXREDIRS, 5)
curl.setopt(pycurl.CONNECTTIMEOUT, 30) curl.setopt(pycurl.CONNECTTIMEOUT, 30)