Daily updates from Odoo
Tuesday, September 17, 2019
1 change
Code cleanup and technical improvements
This update replaces outdated internal Python functions with their modern equivalents across accounting, delivery, documents, payroll, localization, and inter-company features. It helps keep the system compatible with newer Python versions without changing day-to-day user workflows.
Original PR description
PEP-594 is deprecating a bunch of modules. As part of the cleanup, we are also dealing with long deprecated modules, functions and aliases. * `assert_` -> `assertTrue` * `assertEquals` -> `assertEqual` * `assertNotEquals` -> `assertNotEqual` * `assertAlmostEquals` -> `assertAlmostEqual` * `assertRaisesRegexp` -> `assertRaisesRegex` * `assertRegexpMatches` -> `assertRegex` * `base64.encodestring` -> `base64.encodebytes` * `base64.decodestring` -> `base64.decodebytes` * `inspect.getargspec` -> `inspect.getfullargspec` * `inspect.formatargspec` -> `inspect.signature` * `logging.warn` -> `logging.warning` Task: 2003936