[issue6623] Lib/ftplib.py Netrc class should be removed.

Francis MB report at bugs.python.org
Sat Sep 27 20:15:37 CEST 2014


Francis MB added the comment:

I've downloaded 'remove_Netrc_class2.patch' and passes the test suite, the examples on the documentation run ok and manually from the command line:

$hg tip
changeset:   92597:e29866cb6b98
tag:         tip
parent:      92594:d43d4d4ebf2c
parent:      92596:54987723de99
...
$ hg status
M Lib/ftplib.py
M Lib/test/test_ftplib.py
? Modules/_testembed
$ ./python -m ftplib -d ftp.debian.org -ddebian
*cmd* 'USER anonymous'
*resp* '331 Please specify the password.'
*cmd* 'PASS *********'
*resp* '230 Login successful.'
*cmd* 'CWD debian'
*resp* '250 Directory successfully changed.'
*cmd* 'QUIT'
*resp* '221 Goodbye.'

My test '.netrc' file was:
$ cat ~/.netrc 
machine ftp.debian.org
login anonymous
password anonymous

The patch also looks good for me.

----------
nosy: +francismb

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


More information about the Python-bugs-list mailing list