Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
168456df
Commit
168456df
authored
Jul 08, 2012
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert the changes done for issue14826 - quoting witin Request is not desirable.
parent
83efd6cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
11 deletions
+0
-11
Lib/test/test_urllib.py
Lib/test/test_urllib.py
+0
-5
Lib/urllib/request.py
Lib/urllib/request.py
+0
-1
Misc/NEWS
Misc/NEWS
+0
-5
No files found.
Lib/test/test_urllib.py
View file @
168456df
...
...
@@ -1246,11 +1246,6 @@ class URLopener_Tests(unittest.TestCase):
# ftp.close()
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
(
...
...
Lib/urllib/request.py
View file @
168456df
...
...
@@ -181,7 +181,6 @@ class Request:
origin_req_host=None, unverifiable=False):
# 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 = {}
...
...
Misc/NEWS
View file @
168456df
...
...
@@ -87,11 +87,6 @@ Core and Builtins
Library
-------
- Issue #14826: Quote urls in urllib.request.Request similar to how they are
quoted by urllib.request.URLopener. Allows urls to spaces in them to work
transparently with urllib.request.urlopen(...). Patch contributed by Stephen
Thorne.
- Issue #14990: Correctly fail with SyntaxError on invalid encoding
declaration.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment