fix ftplib resource warnings

This commit is contained in:
Benjamin Peterson 2010-10-31 19:58:07 +00:00
parent d5df36d378
commit 1bd93a754f
2 changed files with 3 additions and 0 deletions

View file

@ -355,6 +355,8 @@ if ssl is not None:
if (isinstance(self.socket, ssl.SSLSocket) and
self.socket._sslobj is not None):
self._do_ssl_shutdown()
else:
super(SSLConnection, self).close()
class DummyTLS_DTPHandler(SSLConnection, DummyDTPHandler):