Message130193
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. |
|
Date |
User |
Action |
Args |
2011-03-06 21:14:07 | saffroy | set | recipients:
+ saffroy |
2011-03-06 21:14:07 | saffroy | set | messageid: <1299446047.69.0.767438398088.issue11416@psf.upfronthosting.co.za> |
2011-03-06 21:14:07 | saffroy | link | issue11416 messages |
2011-03-06 21:14:07 | saffroy | create | |
|