[FIX] no Logger.getChild in Python 2.6
bzr revid: xmo@openerp.com-20130906135331-zt3uzoeupvlba513
This commit is contained in:
parent
82fef0738c
commit
945376a066
|
@ -49,7 +49,7 @@ def html_sanitize(src, silent=True):
|
||||||
return src
|
return src
|
||||||
src = ustr(src, errors='replace')
|
src = ustr(src, errors='replace')
|
||||||
|
|
||||||
logger = _logger.getChild('html_sanitize')
|
logger = logging.getLogger(__name__ + '.html_sanitize')
|
||||||
|
|
||||||
# html encode email tags
|
# html encode email tags
|
||||||
part = re.compile(r"(<(([^a<>]|a[^<>\s])[^<>]*)@[^<>]+>)", re.IGNORECASE | re.DOTALL)
|
part = re.compile(r"(<(([^a<>]|a[^<>\s])[^<>]*)@[^<>]+>)", re.IGNORECASE | re.DOTALL)
|
||||||
|
|
Loading…
Reference in New Issue