[New-bugs-announce] [issue8818] urlsplit and urlparse add extra slash when using scheme

AdamN report at bugs.python.org
Tue May 25 16:40:19 CEST 2010


New submission from AdamN <adam at varud.com>:

urlsplit and urlparse place the host into the path when using a default scheme:

(Pdb) urlsplit('regionalhelpwanted.com/browseads/?sn=2',scheme='http')
SplitResult(scheme='http', netloc='', path='regionalhelpwanted.com/browseads/', query='sn=2', fragment='')

When using default_scheme as referenced in the documentation, it simply doesn't work:

(Pdb) urlsplit('regionalhelpwanted.com/browseads/?sn=2',default_scheme='http')
*** TypeError: urlsplit() got an unexpected keyword argument 'default_scheme'

----------
components: Library (Lib)
messages: 106438
nosy: adamnelson
priority: normal
severity: normal
status: open
title: urlsplit and urlparse add extra slash when using scheme
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8818>
_______________________________________


More information about the New-bugs-announce mailing list