summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-12-06 20:36:55 (GMT)
committerGitHub <noreply@github.com>2018-12-06 20:36:55 (GMT)
commit42b1d6127bd8595522a78a75166ebb9fba74a6a2 (patch)
treef6ea667c159c1666d08ad9e81621bdca6f373637 /Lib/ssl.py
parent20428527a7c188d988d20b267cfef58da10b0fc9 (diff)
downloadcpython-42b1d6127bd8595522a78a75166ebb9fba74a6a2.zip
cpython-42b1d6127bd8595522a78a75166ebb9fba74a6a2.tar.gz
cpython-42b1d6127bd8595522a78a75166ebb9fba74a6a2.tar.bz2
bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r--Lib/ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 8f6d402..e6e3a6d 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -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