[issue6623] Lib/ftplib.py netrc class parsing problem

Vincent Legoll report at bugs.python.org
Wed Aug 5 00:04:32 CEST 2009


Vincent Legoll <vincent.legoll at gmail.com> added the comment:

If the macro_lines is not emptied upon end of parsing a macro
definition, if there's another macro definiton it will 'inherit' the
lines from the previous one, which could very well be uncool.

The use before definition should also be fixed.

Please advise if a better fix would be to completely remove the Netrc
class from ftplib, or replace it with a compatibility wrapper that use
the netrc module.

----------

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


More information about the Python-bugs-list mailing list