From 372fad6ac9fba9b4e9b81ba2aa709f49fa260167 Mon Sep 17 00:00:00 2001
From: Stuart Gathman <stuart@gathman.org>
Date: Tue, 2 Jun 2009 21:38:09 +0000
Subject: [PATCH] Release 0.9.2-2

---
 CREDITS            | 4 ++++
 Milter/__init__.py | 4 ++--
 pymilter.spec      | 3 +++
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/CREDITS b/CREDITS
index 283c4f2..05c694a 100644
--- a/CREDITS
+++ b/CREDITS
@@ -7,6 +7,10 @@ real, usable Python extension.
 
 Other contributors (in random order):
 
+arkanes@irc.freenode.net
+  for suggesting a class method to compute and cache protocol masks
+habnabit@habnabit.org
+  for suggesting function attributes and decorators for protocol negotiation
 Dwayne Litzenberger, B.A.Sc.
   for library_dirs patch to compile on Debian 
 Dave MacQuigg 
diff --git a/Milter/__init__.py b/Milter/__init__.py
index 58ebdf0..fbd1d2b 100755
--- a/Milter/__init__.py
+++ b/Milter/__init__.py
@@ -101,8 +101,8 @@ class Base(object):
         ca = getattr(func,'milter_protocol',0)
         #print func,hex(nr),hex(nc),hex(ca)
         p |= (nr|nc) & ~ca
-    klass._protocol_mask = p
-    return p
+      klass._protocol_mask = p
+      return p
     
   # Default negotiation sets P_NO* and P_NR* for callbacks
   # marked @nocallback and @noreply respectively
diff --git a/pymilter.spec b/pymilter.spec
index e0d2dac..7db3348 100644
--- a/pymilter.spec
+++ b/pymilter.spec
@@ -83,6 +83,9 @@ chmod a+x $RPM_BUILD_ROOT%{libdir}/start.sh
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Tue Jun 02 2009 Stuart Gathman <stuart@bmsi.com> 0.9.2-2
+- Cache callback negotiation
+
 * Thu May 28 2009 Stuart Gathman <stuart@bmsi.com> 0.9.2-1
 - Add new callback support: data,negotiate,unknown
 - Auto-negotiate protocol steps 
-- 
GitLab