From b5983a485d3bac6ffaa59e4d867b85b9e7bc09bc Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 11 May 2017 17:39:49 +0200 Subject: [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. --- addons/mail/models/html2text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mail/models/html2text.py') 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 -- cgit v1.2.3