summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-07-09 01:00:47 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-07-09 01:00:47 (GMT)
commit612a81582092a6a92672097ffbe22beccd546f0a (patch)
treec57acd2056c99621be7be69bf821ce661edb885f /Lib
parent9ae947338911a73070254f1999f42d4bf3713ec4 (diff)
parent168456df1158beee5a5051c108a9052a9aebba27 (diff)
downloadcpython-612a81582092a6a92672097ffbe22beccd546f0a.zip
cpython-612a81582092a6a92672097ffbe22beccd546f0a.tar.gz
cpython-612a81582092a6a92672097ffbe22beccd546f0a.tar.bz2
revert the changes done for issue14826 - quoting witin Request is not desirable.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_urllib.py5
-rw-r--r--Lib/urllib/request.py1
2 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index af3f0ad..22ada56 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -1272,11 +1272,6 @@ class RequestTests(unittest.TestCase):
request.method = 'HEAD'
self.assertEqual(request.get_method(), 'HEAD')
- def test_quote_url(self):
- Request = urllib.request.Request
- request = Request("http://www.python.org/foo bar")
- self.assertEqual(request.full_url, "http://www.python.org/foo%20bar")
-
def test_main():
support.run_unittest(
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py
index c206a8a..67b4c79 100644
--- a/Lib/urllib/request.py
+++ b/Lib/urllib/request.py
@@ -264,7 +264,6 @@ class Request:
method=None):
# unwrap('<URL:type://host/path>') --> 'type://host/path'
self.full_url = unwrap(url)
- self.full_url = quote(self.full_url, safe="%/:=&?~#+!$,;'@()*[]|")
self.full_url, self.fragment = splittag(self.full_url)
self.data = data
self.headers = {}