]> granicus.if.org Git - python/commit
Move some constant initialization from FTP.__init__() and FTP.connect()
authorFred Drake <fdrake@acm.org>
Wed, 28 Feb 2001 21:46:37 +0000 (21:46 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 28 Feb 2001 21:46:37 +0000 (21:46 +0000)
commit9c98a428ef2d4ec0084d2cbc327ed2b94e9afe66
tree63c483a0886765c34289965839cf5063d8fce392
parent2fd456508fe1f6e9d89e153f2d8e83a95b233504
Move some constant initialization from FTP.__init__() and FTP.connect()
to the class namespace.

Allow FTP.close() to be called more than once without tossing cookies.
(This seems to be a fairly common idiom for .close() methods, so let's
try to be consistent.)
Lib/ftplib.py