According to pycurl documentation, data passed to setopt should normally be a byte string.
Signed-off-by: Chenxiong Qi cqi@redhat.com
Is this going to work with Python 3?
Accept byte string in Python 3, and str values containing ASCII code points only. But, encoded to byte string would be better.
rebased
Patch is updated, the url is encoded to byte string explicitly.
url
Looks good to me. This way it should be more futureproof.
Pull-Request has been merged by cqi
According to pycurl documentation, data passed to setopt should normally be a
byte string.
Signed-off-by: Chenxiong Qi cqi@redhat.com