#162 Pass byte string to pycurl setopt
Merged by cqi. Opened by cqi.
cqi/rpkg pass-bytestring-to-pycurl-setopt  into  master

Download 162.patch

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?

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.

Looks good to me. This way it should be more futureproof.

Pull-Request has been merged by cqi

Metadata