summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-12-06 20:52:43 (GMT)
committerGitHub <noreply@github.com>2018-12-06 20:52:43 (GMT)
commit6485aa6eb1024672f08afdd577e2b5792eb6b03c (patch)
tree56d314bba51eb6f4305f401a9b1633bc26bc16dc /Lib/ssl.py
parent560fa4db17983ce37c1453c057901c627b2c3abc (diff)
downloadcpython-6485aa6eb1024672f08afdd577e2b5792eb6b03c.zip
cpython-6485aa6eb1024672f08afdd577e2b5792eb6b03c.tar.gz
cpython-6485aa6eb1024672f08afdd577e2b5792eb6b03c.tar.bz2
bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)
(cherry picked from commit 42b1d6127bd8595522a78a75166ebb9fba74a6a2) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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 38aa389..d1d9866 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