[issue11416] netrc module does not handle multiple entries for a single host

Jean-Marc Saffroy report at bugs.python.org
Mon Mar 28 23:15:47 CEST 2011


Jean-Marc Saffroy <saffroy at gmail.com> added the comment:

So I finally cooked a little patch for netrc.py in python 2.6.
The patch extends netrc.authenticators() with an extra parameter to select a login name, but otherwise the behaviour remains the same (still returns the last entry for a given host).

Lightly tested, works for me.

----------
keywords: +patch
Added file: http://bugs.python.org/file21443/netrc.patch

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


More information about the Python-bugs-list mailing list