bruno Piguet <bruno.pig...@gmail.com> added the comment: Do you agree that the attached patch could be a practical solution ? The patch is for the 2.6 version of the lib. Transposition to other versions should be trivial.
If we don't want to break backward compatibility, the solution is to add a optional behavior flag argument, something like def __init__(self, file=None, sec_mode=False): and have the default value be False for old versions and True for 3.3 and further. ---------- Added file: http://bugs.python.org/file25868/patch_netrc_2.6.txt _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14984> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com