Message179447
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 |
|
Date |
User |
Action |
Args |
2013-01-09 14:46:51 | olof | set | recipients:
+ olof |
2013-01-09 14:46:51 | olof | set | messageid: <1357742811.51.0.916599948648.issue16909@psf.upfronthosting.co.za> |
2013-01-09 14:46:51 | olof | link | issue16909 messages |
2013-01-09 14:46:51 | olof | create | |
|