From 7502c29e478f1e6a0977885856e5cf2a7d2da48b Mon Sep 17 00:00:00 2001
From: Stuart Gathman <stuart@gathman.org>
Date: Tue, 28 Aug 2012 19:42:05 +0000
Subject: [PATCH] Use functools.wraps for noreply decorator

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

diff --git a/Milter/__init__.py b/Milter/__init__.py
index 54b23cc..482dc23 100755
--- a/Milter/__init__.py
+++ b/Milter/__init__.py
@@ -15,6 +15,7 @@ import milter
 import thread
 
 from milter import *
+from functools import wraps
 
 _seq_lock = thread.allocate_lock()
 _seq = 0
@@ -157,6 +158,7 @@ def noreply(func):
   except KeyError:
     raise ValueError(
       '@noreply applied to non-optional method: '+func.__name__)
+  @wraps(func)
   def wrapper(self,*args):
     rc = func(self,*args)
     if self._protocol & nr_mask:
-- 
GitLab