Missing regex

This commit is contained in:
Stuart Gathman
2012-11-15 03:53:02 +00:00
parent 27887daf3f
commit f3fbb1c99d
+4
View File
@@ -11,6 +11,7 @@
__version__ = '0.9.7'
import os
import re
import milter
import thread
@@ -48,6 +49,9 @@ OPTIONAL_CALLBACKS = {
'header':(P_NR_HDR,P_NOHDRS)
}
## @private
R = re.compile(r'%+')
## @private
def decode_mask(bits,names):
t = [ (s,getattr(milter,s)) for s in names]