summaryrefslogtreecommitdiff
path: root/addons/mail/models/html2text.py
AgeCommit message (Collapse)Author
2017-05-15[REM] P3: outdated html2text vendoringXavier Morel
The vendored html2text is *really* old and absolutely not P3-compatible. There is a maintained version on Pypy which is, so use that and stop vendoring html2text.
2017-05-15[FIX] P3: remove cPickle useXavier Morel
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.
2017-05-15[FIX] P3: urllib, urllib2 and urlparseXavier Morel
In Python 3, all of these were "consolidated" under urllib(.request, .parse, .errors) which is inconvenient. Since we already have hard dependencies on requests and werkzeug(.urls, which is a backport of Python 3's unicode-aware urllib.parse) migrate *everything* to that. A sticking point is urllib2.URLError, those were (mostly) replaced by the slightly more general IOError which URLError extends.
2017-05-10[FIX] P3: list -> iterable builtins (#16811)xmo-odoo
In Python 3: * various builtins and dict methods were changed to return view/iterable objects rather than lists * and the separate Python 2 view/iterable builtins and methods were removed altogether This is problematic when using these items as list (which the happens repeatedly in Odoo), but more viciously when iterating *multiple times* over them (which also happens, which I've messed up multiple times while writing this, and which is a pain to debug even when you've just created the issue). Convert all code using these to semantics-matching cross-version helper functions to get the LCD behaviour between P2 and P3, and forbid the builtins via lint. issue #8530
2017-04-11[#8530] convert dict.has_keyXavier Morel
Redundant with `in` and removed from Python 3. Removed odd, old and long-unused UpdatableDict (which defines and uses has_key) and UpdatableStr (which was nearby and caught in the blast), validated with al. (lib2to3.fixes.fix_has_key)
2017-04-11[#8530] convert deprecated operatorsXavier Morel
* `<>` was removed and should be replaced by `!=` (lib2to3.fixes.fix_ne) * `\`` was removed and should be replaced by either `repr()` or the `%r` format string modifier (lib2to3.fixes.fix_repr followed by hand-rolled edition to replace concatenation)
2015-04-27[MOV] mail: moved files according to the new module organizationThibault Delavallée