bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)

This commit is contained in:
Serhiy Storchaka 2018-12-06 22:36:55 +02:00 committed by GitHub
parent 20428527a7
commit 42b1d6127b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View file

@ -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