diff options
author | Aleix Conchillo Flaque | 2010-12-23 02:08:24 +0100 |
---|---|---|
committer | Andy Wingo | 2011-02-18 23:23:06 +0100 |
commit | fc07af26f6a2a1f72e799c382fde4568d49b8c84 (patch) | |
tree | 82e84c9e47292eb2c49ebfc67d0ca4df17bd71a9 | |
parent | 93789f0d0703a9bff2989e02e047cb0e478362e9 (diff) | |
download | tekuti-fc07af26f6a2a1f72e799c382fde4568d49b8c84.tar.gz tekuti-fc07af26f6a2a1f72e799c382fde4568d49b8c84.zip |
wordpress-xmlrpc: use str type for pycurl urls
-rw-r--r-- | wordpress-xmlrpc-to-dir.py | 2 |
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) |