summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-05-11 17:39:49 +0200
committerXavier Morel <xmo@odoo.com>2017-05-15 12:26:30 +0200
commitb5983a485d3bac6ffaa59e4d867b85b9e7bc09bc (patch)
treeb29ac506d6e735a8c4e69e56676044016f1cdea8 /addons
parent01e35141479b8dfc4a390518f89fc52e7cec5396 (diff)
[FIX] P3: remove cPickle use
In Python 3 the native acceleration module was merged into pickle directly. For cross-version simplicity, just use the base module in Python 2 as well, we can reintroduce the accelerator somehow if it turns out too much of a performance hit.
Diffstat (limited to 'addons')
-rwxr-xr-xaddons/mail/models/html2text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/models/html2text.py b/addons/mail/models/html2text.py
index 8830cb0266d..fa2a8507af9 100755
--- a/addons/mail/models/html2text.py
+++ b/addons/mail/models/html2text.py
@@ -13,7 +13,7 @@ __contributors__ = ["Martin 'Joey' Schulze", "Ricardo Reyes", "Kevin Jay North"]
# Support decoded entities with unifiable.
import re, sys, htmlentitydefs, codecs
-import sgmllib
+import sgmllib # pylint: disable=deprecated-module
sgmllib.charref = re.compile('&#([xX]?[0-9a-fA-F]+)[^0-9a-fA-F]')
try: from textwrap import wrap