diff options
| author | Senthil Kumaran <orsenthil@gmail.com> | 2010-08-08 11:43:45 (GMT) |
|---|---|---|
| committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-08-08 11:43:45 (GMT) |
| commit | b4ec7ee486c571694ece406d38259054983b091b (patch) | |
| tree | b544684a4f606201a8d53aa60a63c38ae32027f4 /Lib/urllib2.py | |
| parent | 431774f32a22a4bdfc5a239709bcba3e8d7045e9 (diff) | |
| download | cpython-b4ec7ee486c571694ece406d38259054983b091b.zip cpython-b4ec7ee486c571694ece406d38259054983b091b.tar.gz cpython-b4ec7ee486c571694ece406d38259054983b091b.tar.bz2 | |
Merged revisions 83818 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83818 | senthil.kumaran | 2010-08-08 16:57:53 +0530 (Sun, 08 Aug 2010) | 4 lines
Fix Issue8280 - urllib2's Request method will remove fragements in the url.
This is how it should work,wget and curl work like this way too. Old behavior was wrong.
........
Diffstat (limited to 'Lib/urllib2.py')
| -rw-r--r-- | Lib/urllib2.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py index f6f7be9..d0e81a8 100644 --- a/Lib/urllib2.py +++ b/Lib/urllib2.py @@ -109,7 +109,7 @@ except ImportError: from StringIO import StringIO from urllib import (unwrap, unquote, splittype, splithost, quote, - addinfourl, splitport, + addinfourl, splitport, splittag, splitattr, ftpwrapper, splituser, splitpasswd, splitvalue) # support for FileHandler, proxies via environment variables @@ -190,6 +190,7 @@ class Request: origin_req_host=None, unverifiable=False): # unwrap('<URL:type://host/path>') --> 'type://host/path' self.__original = unwrap(url) + self.__original, fragment = splittag(self.__original) self.type = None # self.__r_type is what's left after doing the splittype self.host = None |
