This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author olof
Recipients olof
Date 2013-01-09.14:46:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357742811.51.0.916599948648.issue16909@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

The urlparse library's "netloc" attribute is today further split into the following attributes: username, password, hostname, port. The attributes preceding the @ (username, password) are refered to in RFC 3986 [1] as "userinfo", the format of which is scheme dependant. E.g. the (expired) internet draft for SSH/SFTP urls [2] have connection parameters within the userinfo (user;cparams@host).

In some cases, the deprecated "username:password" syntax is required to be supported even with, e.g. "connection parameters". For this reason, I propose a new attribute, "userinfo", that exposes the "raw" userinfo string, without any splitting on : etc. I've had a go at a patch, with updated unit tests and documentation. Any feedback is welcome!

Regards,

1: http://tools.ietf.org/rfc/rfc3986.txt
2: http://tools.ietf.org/id/draft-ietf-secsh-scp-sftp-ssh-uri-04.txt
History
Date User Action Args
2013-01-09 14:46:51olofsetrecipients: + olof
2013-01-09 14:46:51olofsetmessageid: <1357742811.51.0.916599948648.issue16909@psf.upfronthosting.co.za>
2013-01-09 14:46:51oloflinkissue16909 messages
2013-01-09 14:46:51olofcreate