New submission from saffroy <saff...@gmail.com>: I have a netrc file with two entries for the same host. The netrc module only returns the last entry.
$ cat > .netrc machine host.com login foo password foo machine host.com login bar password bar $ python -c 'import netrc; print netrc.netrc()' machine host.com login 'bar' password 'bar' My Linux ftp clients (ftp, lftp) always use the first entry for a given host. Also lftp can use the password from the proper entry if I supply the host and login. With the netrc module in Python 2.6.6 (as tested on Debian Squeeze), I can only retrieve the last entry. ---------- components: Library (Lib) messages: 130193 nosy: saffroy priority: normal severity: normal status: open title: netrc module does not handle multiple entries for a single host type: behavior versions: Python 2.6 _______________________________________ 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