From e44321561bc8219822c6cebba61fefd63e12e351 Mon Sep 17 00:00:00 2001
From: Stuart Gathman <stuart@gathman.org>
Date: Mon, 28 Sep 2009 02:05:00 +0000
Subject: [PATCH] Fix typos.

---
 Milter/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Milter/__init__.py b/Milter/__init__.py
index bac26fa..b0efd24 100755
--- a/Milter/__init__.py
+++ b/Milter/__init__.py
@@ -79,7 +79,7 @@ def enable_protocols(klass,mask):
 # If the MTA supports it, tells the MTA not to call this callback,
 # increasing efficiency.  All the callbacks (except negotiate)
 # are disabled in Milter.Base, and overriding them reenables the
-# callback.  An application may need to use @@callback when it extends
+# callback.  An application may need to use @@nocallback when it extends
 # another milter and wants to disable a callback again.
 # The disabled method should still return Milter.CONTINUE, in case the MTA does
 # not support protocol negotiation.
@@ -102,7 +102,7 @@ def nocallback(func):
 def noreply(func):
   try:
     nr_mask = OPTIONAL_CALLBACKS[func.__name__][0]
-  except KeyErro:
+  except KeyError:
     raise ValueError(
       '@noreply applied to non-optional method: '+func.__name__)
   def wrapper(self,*args):
-- 
GitLab