Daily updates from Odoo
Tuesday, September 17, 2019
1 change
Resolved issues and error corrections
This update replaces outdated internal Python functions with their current supported versions across several Odoo apps. It helps keep the platform compatible with newer Python releases and reduces future maintenance risk, with no expected change to day-to-day user behavior.
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