New submission from Bastian Kleineidam <cal...@users.sourceforge.net>:
When using a javascript URL with only digits as paths, the urlsplit() functions behaves different in Python 2.7 than in 2.6: $ python2.6 -c "import urlparse; print urlparse.urlsplit('javascript:123')" SplitResult(scheme='javascript', netloc='', path='123', query='', fragment='') $ python2.7 -c "import urlparse; print urlparse.urlsplit('javascript:123')" SplitResult(scheme='', netloc='', path='javascript:123', query='', fragment='') Python 3.2 has the same regression: $ python3.2 -c "import urllib.parse; print(urllib.parse.urlsplit('javascript:123'))" SplitResult(scheme='', netloc='', path='javascript:123', query='', fragment='') I consider the Python 2.6 behaviour to be correct, ie. the current behaviour is buggy. ---------- components: Library (Lib) messages: 130570 nosy: calvin priority: normal severity: normal status: open title: urlparse.urlsplit() regression for paths consisting of digits type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11467> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com