compare singletons by identity not equality (closes #16712)

Patch from Serhiy Storchaka.
This commit is contained in:
Benjamin Peterson 2012-10-09 11:16:03 -04:00
parent a511935151
commit b29614e047
9 changed files with 15 additions and 15 deletions

View file

@ -342,7 +342,7 @@ if ssl is not None:
# http://www.mail-archive.com/openssl-users@openssl.org/msg60710.html
pass
self._ssl_closing = False
if getattr(self, '_ccc', False) == False:
if getattr(self, '_ccc', False) is False:
super(SSLConnection, self).close()
else:
pass