[REVIEW] tools: removed duplicate email_split in tools.
bzr revid: tde@openerp.com-20120828080939-5bt3klbep49gjw47
This commit is contained in:
parent
74ba3b17e6
commit
ec85db8e83
|
@ -1118,12 +1118,6 @@ class unquote(str):
|
|||
def __repr__(self):
|
||||
return self
|
||||
|
||||
def email_split(text):
|
||||
"""Return a list of the email addresses found in ``text``"""
|
||||
if not text: return []
|
||||
return re.findall(r'([^ ,<@]+@[^> ,]+)', text)
|
||||
|
||||
|
||||
class UnquoteEvalContext(defaultdict):
|
||||
"""Defaultdict-based evaluation context that returns
|
||||
an ``unquote`` string for any missing name used during
|
||||
|
|
Loading…
Reference in New Issue