Leonid Vasilev <vsleo...@gmail.com> added the comment: Actually urlparse.urljoin implements RFC 2396
Is it true that 'CGIHTTPServer._url_collapse_path_split' is just a inverted 'urlparse.urljoin' ? """ >>> urlparse.urljoin('http://a/b/c/','g') 'http://a/b/c/g' >>> urlparse.url_collapse_path_split('http://a/b/c/g') ('/http:/a/b/c', 'g') >>> urlparse.urlsplit('http://a/b/c/g') SplitResult(scheme='http', netloc='a', path='/b/c/g', query='', fragment='') """ And there is existing function 'urlparse.urlsplit'. I think "CGIHTTPServer._url_collapse_path_split" is just a customized version of latter, and should be rewritten using 'urlparse.urlsplit'. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5714> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com