[Python-Dev] urlparse.urlunsplit should be smarter about + (original) (raw)
John Arbash Meinel john.arbash.meinel at gmail.com
Sat May 8 18:04:47 CEST 2010
- Previous message: [Python-Dev] urlparse.urlunsplit should be smarter about +
- Next message: [Python-Dev] urlparse.urlunsplit should be smarter about +
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Stephen J. Turnbull wrote:
David Abrahams writes: > > This is a bug report. bugs.python.org seems to be down. > > >>> from urlparse import * > >>> urlunsplit(urlsplit('git+file:///foo/bar/baz')) > git+file:/foo/bar/baz > > Note the dropped slashes after the colon.
That's clearly wrong, but what does "+" have to to do with it? AFAIK, the only thing special about + in scheme names is that it's not allowed as the first character.
Don't you need to register the "git+file:///" url for urlparse to properly split it?
if protocol not in urlparse.uses_netloc:
urlparse.uses_netloc.append(protocol)
John =:->
- Previous message: [Python-Dev] urlparse.urlunsplit should be smarter about +
- Next message: [Python-Dev] urlparse.urlunsplit should be smarter about +
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]