VMM: removed unneeded/duplicated regular expression definitions v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Mon, 22 Feb 2010 04:26:52 +0000
branchv0.6.x
changeset 208 efa1327b721f
parent 207 95be8f62bc0c
child 209 c705a9e38962
VMM: removed unneeded/duplicated regular expression definitions
VirtualMailManager/EmailAddress.py
VirtualMailManager/Handler.py
VirtualMailManager/__init__.py
--- a/VirtualMailManager/EmailAddress.py	Mon Feb 22 03:14:12 2010 +0000
+++ b/VirtualMailManager/EmailAddress.py	Mon Feb 22 04:26:52 2010 +0000
@@ -14,7 +14,6 @@
 from VirtualMailManager.Exceptions import VMMEmailAddressException as VMMEAE
 
 
-RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"""
 _ = lambda msg: msg
 
 
--- a/VirtualMailManager/Handler.py	Mon Feb 22 03:14:12 2010 +0000
+++ b/VirtualMailManager/Handler.py	Mon Feb 22 04:26:52 2010 +0000
@@ -35,7 +35,6 @@
 
 SALTCHARS = './0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
 RE_DOMAIN_SRCH = """^[a-z0-9-\.]+$"""
-RE_LOCALPART = """[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"""
 RE_MBOX_NAMES = """^[\x20-\x25\x27-\x7E]*$"""
 
 
--- a/VirtualMailManager/__init__.py	Mon Feb 22 03:14:12 2010 +0000
+++ b/VirtualMailManager/__init__.py	Mon Feb 22 04:26:52 2010 +0000
@@ -37,7 +37,6 @@
     locale.setlocale(locale.LC_ALL, 'C')
 ENCODING = locale.nl_langinfo(locale.CODESET)
 
-RE_ASCII_CHARS = r"^[\x20-\x7E]*$"
 RE_DOMAIN = r"^(?:[a-z0-9-]{1,63}\.){1,}[a-z]{2,6}$"
 RE_LOCALPART = r"[^\w!#$%&'\*\+-\.\/=?^_`{\|}~]"