Closed GoogleCodeExporter closed 9 years ago
This fixes the issue. The ':'.join() isnt as clean as string.join, but I
figured it
would be better to not add an import.
===================================================================
--- main.py (revision 219)
+++ main.py (working copy)
@@ -253,8 +253,8 @@
Returns:
A properly encoded IRI (see RFC 3987).
"""
- scheme, rest = unicode(url).encode('utf-8').split(':', 1)
- return '%s:%s' % (scheme, urllib.quote(rest))
+ parts = unicode(url).encode('utf-8').split(':')
+ return ':'.join(map(urllib.quote, parts))
Original comment by alex.schoof
on 21 Aug 2009 at 1:44
Original comment by bslatkin
on 25 Aug 2009 at 2:59
Original issue reported on code.google.com by
kugutsu...@gmail.com
on 20 Aug 2009 at 10:33