➜

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.

作者 olof
收信人 olof
日期 2013-01-09.14:46:50
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1357742811.51.0.916599948648.issue16909@psf.upfronthosting.co.za>
In-reply-to
内容
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
历史
日期 用户 动作 参数
2013-01-09 14:46:51olof修改recipients: + olof
2013-01-09 14:46:51olof修改messageid: <1357742811.51.0.916599948648.issue16909@psf.upfronthosting.co.za>
2013-01-09 14:46:51olof链接issue16909 messages
2013-01-09 14:46:51olof创建