-
- Downloads
[REM] pycompat: remove python 2 shims and helpers
Odoo no longer supports python 2, thus some of these helpers can and have been replaced by python 3 built-ins, therefore there is no need for them to stay defined. The removed helpers are: * izip, imap and ifilter * unichr, text_type * implements_to_string, implements_iterator * string_types, integer_types * to_native The python 2 shims have also been removed, and only the python 3 helpers have been kept, because they can still be usable (i.e. accepting both bytes and str for functions that can only accept one of the two) [REM] pyjsparser: remove PY3 shims They're no longer necessary as Odoo doesn't officially support python 2 anymore. closes odoo/odoo#28519
Showing
- addons/web_editor/controllers/main.py 1 addition, 1 deletionaddons/web_editor/controllers/main.py
- doc/_extensions/pyjsparser/parser.py 15 additions, 23 deletionsdoc/_extensions/pyjsparser/parser.py
- doc/_extensions/pyjsparser/pyjsparserdata.py 9 additions, 15 deletionsdoc/_extensions/pyjsparser/pyjsparserdata.py
- doc/python3.rst 0 additions, 10 deletionsdoc/python3.rst
- odoo/addons/base/models/qweb.py 1 addition, 4 deletionsodoo/addons/base/models/qweb.py
- odoo/fields.py 1 addition, 3 deletionsodoo/fields.py
- odoo/models.py 0 additions, 1 deletionodoo/models.py
- odoo/modules/migration.py 9 additions, 31 deletionsodoo/modules/migration.py
- odoo/modules/module.py 2 additions, 6 deletionsodoo/modules/module.py
- odoo/tests/common.py 3 additions, 4 deletionsodoo/tests/common.py
- odoo/tools/float_utils.py 16 additions, 19 deletionsodoo/tools/float_utils.py
- odoo/tools/mail.py 1 addition, 4 deletionsodoo/tools/mail.py
- odoo/tools/misc.py 0 additions, 1 deletionodoo/tools/misc.py
- odoo/tools/pycompat.py 17 additions, 84 deletionsodoo/tools/pycompat.py
Loading
Please register or sign in to comment