HomePhorge

[Python 3] Remove unnecessary occurrences of .keys()

Description

[Python 3] Remove unnecessary occurrences of .keys()

Summary:
The following cases are covered:

  • for key in dict
  • if key in dict
  • len(dict)

This will make life easier for futurize.

Reviewers: machniak, mollekopf

Reviewed By: mollekopf

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

Details

Provenance
sicherhaAuthored on Jun 5 2021, 9:59 AM
sicherhaPushed on Jan 10 2022, 8:48 PM
Reviewer
mollekopf
Differential Revision
D3235: [Python 3] Remove unnecessary occurrences of .keys()
Parents
rP991255eaa314: [Python 3] Use new exception syntax
Branches
Unknown
Tags
Unknown
Build Status
Buildable 37843