Skip to content

Commit b8b45ea

Browse files
committed
Fix typo in exception name (UnimplementedError should be
NotImplementedError) found by Neil Norwitz's PyChecker.
1 parent 74cde5b commit b8b45ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/smtpd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# has a hierarchy of classes which implement the backend functionality for the
3939
# smtpd. A number of classes are provided:
4040
#
41-
# SMTPServer - the base class for the backend. Raises an UnimplementedError
41+
# SMTPServer - the base class for the backend. Raises NotImplementedError
4242
# if you try to use it.
4343
#
4444
# DebuggingServer - simply prints each message it receives on stdout.
@@ -309,7 +309,7 @@ def process_message(self, peer, mailfrom, rcpttos, data):
309309
otherwise it returns the desired response string in RFC 821 format.
310310
311311
"""
312-
raise UnimplementedError
312+
raise NotImplementedError
313313

314314

315315
class DebuggingServer(SMTPServer):

0 commit comments

Comments
 (0)