HomePhorge

[Python 3] Use .items() instead of .iteritems()

Description

[Python 3] Use .items() instead of .iteritems()

Summary:
.iteritems() was dropped in Python 3.0.

This commit may have a negative performance impact on Python 2 since
.items() returns a copy of the dictionary's item list. In Python 3,
.items() returns a view object, so no performance drop should be
noticeable there.

Reviewers: machniak, mollekopf

Reviewed By: mollekopf

Subscribers: mollekopf

Differential Revision: https://git.kolab.org/D3244

Details

Provenance
sicherhaAuthored on Jun 5 2021, 2:44 PM
sicherhaPushed on Jan 10 2022, 8:51 PM
Reviewer
mollekopf
Differential Revision
D3244: [Python 3] Use .items() instead of .iteritems()
Parents
rP9a5f92139d3f: [Python 3] Get rid of .has_key()
Branches
Unknown
Tags
Unknown
Build Status
Buildable 37852