summaryrefslogtreecommitdiffstats
path: root/Lib/urllib2.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-07-08 08:14:53 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-07-08 08:14:53 (GMT)
commitdc43adbfc2e23f88a5587660a824fad65aec15fc (patch)
tree12dcac08a710cdc379c5c12a13de9f6bb62152d9 /Lib/urllib2.py
parent01fe5fa8ea52ba49063d20a5044fb84efdbabe48 (diff)
downloadcpython-dc43adbfc2e23f88a5587660a824fad65aec15fc.zip
cpython-dc43adbfc2e23f88a5587660a824fad65aec15fc.tar.gz
cpython-dc43adbfc2e23f88a5587660a824fad65aec15fc.tar.bz2
Fix the buildbot failure - msg164973
Diffstat (limited to 'Lib/urllib2.py')
-rw-r--r--Lib/urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index 944f622..02d77d7 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -196,7 +196,7 @@ class Request:
def __init__(self, url, data=None, headers={},
origin_req_host=None, unverifiable=False):
# unwrap('<URL:type://host/path>') --> 'type://host/path'
- self.__original = unwrap(toBytes(url))
+ self.__original = unwrap(url)
self.__original = quote(self.__original, safe="%/:=&?~#+!$,;'@()*[]|")
self.__original, self.__fragment = splittag(self.__original)
self.type = None