mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
This commit is contained in:
parent
a511935151
commit
b29614e047
9 changed files with 15 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue