[FIX] no Logger.getChild in Python 2.6

bzr revid: xmo@openerp.com-20130906135331-zt3uzoeupvlba513
This commit is contained in:
Xavier Morel 2013-09-06 15:53:31 +02:00
parent 82fef0738c
commit 945376a066
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def html_sanitize(src, silent=True):
return src
src = ustr(src, errors='replace')
logger = _logger.getChild('html_sanitize')
logger = logging.getLogger(__name__ + '.html_sanitize')
# html encode email tags
part = re.compile(r"(<(([^a<>]|a[^<>\s])[^<>]*)@[^<>]+>)", re.IGNORECASE | re.DOTALL)