Skip to content
Snippets Groups Projects
Commit 7502c29e authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Use functools.wraps for noreply decorator

parent 594d3ad3
Branches
Tags
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment