saffroy <saff...@gmail.com> added the comment: I could spend some time on a small patch.
Here are the changes I would consider: - netrc.authenticators() could return the first entry matching a given host (now it returns the last) - it could also accept an extra parameter (with default=None), a login to select the right account/password for a given host - it could also return a list of entries (tuples) matching the supplied host (now it always returns only one tuple), or a new method could do that IMHO the last change would make the overall behaviour more consistent (BTW note the plural for "authenticators"), but it could also break existing apps. Comments? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11416> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com