summaryrefslogtreecommitdiff
path: root/tests/test_program_without_code_operations.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2017-08-18 18:48:17 +0200
committerOlivier Dony <odo@openerp.com>2017-08-18 18:48:17 +0200
commit13ca39dd6d0b477804d9dcefd80ccb46d3f9d963 (patch)
tree03107810dd942c31057a1aaf9bf8964c730917dd /tests/test_program_without_code_operations.py
parent12492433e38265605577c2737c31dd1765e3956c (diff)
[FIX] P3: remove pycompat.{keys,items,values} helpers
Now that we're closer to switching to P3 for good, these helpers have outlived their usefulness, and mostly add noise. All remaining dict.iter*() or dict.view*() must be converted to the normal keys(), values() or items() calls. Whenever the result is likely to be used for more than the scope of a loop, or when the dict needs to be modified during iteration, the calls must be wrapped in a ``list()``, to protect the new P3 semantics. Those cases are very exceptional. Also removed some dead code or improved the API to remove unnecessary conversions.
Diffstat (limited to 'tests/test_program_without_code_operations.py')
0 files changed, 0 insertions, 0 deletions