Created attachment 390161 [details] Patch to allow url arguments to be of type unicode Description of problem: I am working on some code that handed a url as a unicode string to urlgrabber. This lead to a problem with two sections of code. One is in mirror.py where we're only allowing byte strings. The other is in grabber.py which hands off the unicode strings to pycurl. pycurl only understands byte strings and raises an error if a unicode string is given to it. We need to transform any unicode strings into byte strings before it gets to curl. Since we're doing that, we might as well allow unicode strings in mirror.py and transform those to byte strings as well. Version-Release number of selected component (if applicable): 3.9.1-4 and current git HEAD. How reproducible: Everytime Steps to Reproduce: 1. import urlgrabber 2. urlgrabber.urlread(u'http://fedoraproject.org') 3. Actual results: Traceback from pycurl Expected results: Return the page from the URL. Additional info: Will attach a patch that fixes this (and also a typo in the exception name that I saw at the same time.)
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle. Changing version to '13'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
patch applied, will be out in 3.9.2 - thank you.