]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in exception name (UnimplementedError should be
authorGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 13:06:04 +0000 (13:06 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 15 Apr 2001 13:06:04 +0000 (13:06 +0000)
NotImplementedError) found by Neil Norwitz's PyChecker.

Lib/smtpd.py

index b5db3b0e0914e0fdf322cba955733e1679e63ea7..fffc2295194ef6bb0636b3d5627d33520fb05644 100755 (executable)
@@ -38,7 +38,7 @@ Version: %(__version__)s
 # has a hierarchy of classes which implement the backend functionality for the
 # smtpd.  A number of classes are provided:
 #
-#   SMTPServer - the base class for the backend.  Raises an UnimplementedError
+#   SMTPServer - the base class for the backend.  Raises NotImplementedError
 #   if you try to use it.
 #
 #   DebuggingServer - simply prints each message it receives on stdout.
@@ -309,7 +309,7 @@ class SMTPServer(asyncore.dispatcher):
         otherwise it returns the desired response string in RFC 821 format.
 
         """
-        raise UnimplementedError
+        raise NotImplementedError
 
 
 class DebuggingServer(SMTPServer):