mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)
This commit is contained in:
parent
20428527a7
commit
42b1d6127b
3 changed files with 9 additions and 4 deletions
|
@ -884,8 +884,8 @@ class SSLSocket(socket):
|
|||
return self._sslobj.session_reused
|
||||
|
||||
def dup(self):
|
||||
raise NotImplemented("Can't dup() %s instances" %
|
||||
self.__class__.__name__)
|
||||
raise NotImplementedError("Can't dup() %s instances" %
|
||||
self.__class__.__name__)
|
||||
|
||||
def _checkClosed(self, msg=None):
|
||||
# raise an exception here if you wish to check for spurious closes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue