Ezio Melotti <ezio.melo...@gmail.com> added the comment:

Here's a possible patch.

The problem is that urlsplit (in Lib/urllib/parse.py:348) tries to convert the 
part after the : (in this case +31-641044153 and +31641044153) to int to see if 
it's a port number.  This doesn't work with +31-641044153, but it does with 
+31-641044153.
In the patch I'm assuming that the port number can only contain ascii digits 
(no leading '+/-', no spaces, no non-ascii digits) and checking for it 
explicitly, rather than using int() in a try/except.

----------
keywords: +patch
nosy: +ezio.melotti
stage:  -> patch review
Added file: http://bugs.python.org/file25486/issue14072.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14072>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to