summaryrefslogtreecommitdiffstatshomepage
path: root/wordpress-xmlrpc-to-dir.py
diff options
context:
space:
mode:
authorGravatar Aleix Conchillo Flaque2010-12-23 02:08:24 +0100
committerGravatar Andy Wingo2011-02-18 23:23:06 +0100
commitfc07af26f6a2a1f72e799c382fde4568d49b8c84 (patch)
tree82e84c9e47292eb2c49ebfc67d0ca4df17bd71a9 /wordpress-xmlrpc-to-dir.py
parent93789f0d0703a9bff2989e02e047cb0e478362e9 (diff)
downloadtekuti-fc07af26f6a2a1f72e799c382fde4568d49b8c84.tar.gz
tekuti-fc07af26f6a2a1f72e799c382fde4568d49b8c84.zip
wordpress-xmlrpc: use str type for pycurl urls
Diffstat (limited to 'wordpress-xmlrpc-to-dir.py')
-rw-r--r--wordpress-xmlrpc-to-dir.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wordpress-xmlrpc-to-dir.py b/wordpress-xmlrpc-to-dir.py
index 6c442ba..e6f85e1 100644
--- a/wordpress-xmlrpc-to-dir.py
+++ b/wordpress-xmlrpc-to-dir.py
@@ -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)