[issue11703] Bug in python >= 2.7 with urllib2 fragment
Santoso Wijaya
report at bugs.python.org
Thu Apr 7 01:54:48 CEST 2011
Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:
It already does. ;-)
Python 2.7.1+ (default, Apr 6 2011, 16:25:38) [MSC v.1500 32 bit (Intel)] on wi
n32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
[74578 refs]
>>> fp = urllib2.urlopen('http://16.foobnix-cms.appspot.com/test_base')
[75643 refs]
>>> fp.geturl()
"http://16.foobnix-cms.appspot.com/test_redirect#json={value:'OK'}"
[75645 refs]
I'm attaching patches with the appropriate unittest for the redirected case, though.
----------
Added file: http://bugs.python.org/file21555/issue11703_py27_with_redirect.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11703>
_______________________________________
More information about the Python-bugs-list
mailing list