Fix typos.

This commit is contained in:
Stuart Gathman
2009-09-28 02:05:00 +00:00
parent 344ee43f22
commit e44321561b
+2 -2
View File
@@ -79,7 +79,7 @@ def enable_protocols(klass,mask):
# If the MTA supports it, tells the MTA not to call this callback, # If the MTA supports it, tells the MTA not to call this callback,
# increasing efficiency. All the callbacks (except negotiate) # increasing efficiency. All the callbacks (except negotiate)
# are disabled in Milter.Base, and overriding them reenables the # 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. # another milter and wants to disable a callback again.
# The disabled method should still return Milter.CONTINUE, in case the MTA does # The disabled method should still return Milter.CONTINUE, in case the MTA does
# not support protocol negotiation. # not support protocol negotiation.
@@ -102,7 +102,7 @@ def nocallback(func):
def noreply(func): def noreply(func):
try: try:
nr_mask = OPTIONAL_CALLBACKS[func.__name__][0] nr_mask = OPTIONAL_CALLBACKS[func.__name__][0]
except KeyErro: except KeyError:
raise ValueError( raise ValueError(
'@noreply applied to non-optional method: '+func.__name__) '@noreply applied to non-optional method: '+func.__name__)
def wrapper(self,*args): def wrapper(self,*args):