[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2014-03-07 Thread STINNER Victor
STINNER Victor added the comment: I posted a patch to #20271 which should fix the issue. I wrote the patch for Python 3.5, but it can be adapted to be tolerant (don't make extensive tests on port number, host and IPv6) for older versions. -- ___ Pyt

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2014-01-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Julien's patch is subject to bugs described in issue20270 and issue20271. As far as OpenStack Oslo library. -- dependencies: +urllib.parse doesn't work with empty port, urllib.parse.urlparse() accepts wrong URLs type: -> behavior versions: +Python 3

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-10-17 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-07-22 Thread Samwyse
Samwyse added the comment: Handles "raw" IPv6 URLs -- Added file: http://bugs.python.org/file31015/urllib.diff ___ Python tracker ___

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-07-22 Thread Samwyse
Samwyse added the comment: Fixes Serhiy Storchaka's complaints, removes duplicate test. -- nosy: +samwyse Added file: http://bugs.python.org/file31013/test_urlparse.diff ___ Python tracker _

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-06-12 Thread Berker Peksag
Berker Peksag added the comment: FTR, urllib.parse.splitport is undocumented and it is only used by urllib.request in the stdlib. -- nosy: +berker.peksag versions: -Python 3.1, Python 3.2 ___ Python tracker _

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I see only tests. It is more common to use arguments for assertEqual() in the reverse order, first actual value, and than expected value. -- nosy: +serhiy.storchaka ___ Python tracker

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-06-12 Thread Doug Hellmann
Doug Hellmann added the comment: LGTM -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-06-12 Thread Doug Hellmann
Changes by Doug Hellmann : -- nosy: +doughellmann ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-06-12 Thread Julien Danjou
Julien Danjou added the comment: Attached is a patch inspired by a function written for OpenStack Oslo library. -- keywords: +patch Added file: http://bugs.python.org/file30558/0001-Make-urllib.parse.splitport-handle-IPv6-correctly.patch ___ Python t

[issue18191] urllib2/urllib.parse.splitport does not handle IPv6 correctly

2013-06-11 Thread Julien Danjou
New submission from Julien Danjou: >>> import urllib.parse >>> urllib.parse.splitport("::1") (':', '1') This is obviously invalid. -- components: Library (Lib) messages: 190968 nosy: jd priority: normal severity: normal status: open title: urllib2/urllib.parse.splitport does not handle