[issue6631] Disallow relative files paths in urllib*.open()

2015-08-02 Thread Robert Collins
Robert Collins added the comment: test_relativelocalfile is still in place in the urllib tests, so its affecting urlopen to this point. So I think the bug is fixed at least to the extent of the original report. I'm going to close this. -- nosy: +rbcollins stage: commit review -> resol

[issue6631] Disallow relative files paths in urllib*.open()

2015-04-14 Thread Martin Panter
Martin Panter added the comment: I’m confused what the intention of this bug is. The normal urllib.request.urlopen() function (or equivalent) still allows file URLs with relative paths, in various Python versions I tried, ranging from 2.6 to 3.5: >>> import urllib.request >>> urllib.request.ur

[issue6631] Disallow relative files paths in urllib*.open()

2014-07-12 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue6631] Disallow relative files paths in urllib*.open()

2012-01-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Actually, I saw this as a bug with urllib.urlopen and urllib2 had exhibited proper behaviour previously. Now, both behaviour will be consistent now. But, you are right that an *incorrect* usage of urllib.urlopen would break in 2.7.2. If we need to be lenient

[issue6631] Disallow relative files paths in urllib*.open()

2012-01-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Sorry, why was this change backported? Does this fix a specific issue in 2.7 or 3.2? On the contrary, it seems to me that code which (incorrectly) used urllib.urlopen() to allow both urls and local files will suddenly break. -- nosy: +amaury.forg

[issue6631] Disallow relative files paths in urllib*.open()

2012-01-20 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: performance -> behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker _

[issue6631] Disallow relative files paths in urllib*.open()

2012-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4366c0df2c73 by Senthil Kumaran in branch '2.7': NEWS entry for Issue6631 http://hg.python.org/cpython/rev/4366c0df2c73 New changeset 514994d7a9f2 by Senthil Kumaran in branch '3.2': Fix Issue6631 - Disallow relative file paths in urllib urlopen h

[issue6631] Disallow relative files paths in urllib*.open()

2012-01-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset f6008e936fbc by Senthil Kumaran in branch '2.7': Fix Issue6631 - Disallow relative files paths in urllib*.open() http://hg.python.org/cpython/rev/f6008e936fbc -- nosy: +python-dev ___ Pyth

[issue6631] Disallow relative files paths in urllib*.open()

2012-01-20 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- title: urlparse.urlunsplit() can't handle relative files (for urllib*.open() -> Disallow relative files paths in urllib*.open() ___ Python tracker ___