Page MenuHomePhorge

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

Authored by sicherha on Jan 8 2022, 11:38 AM.
Tags
None
Referenced Files
F16550967: D3235.id9256.diff
Tue, Oct 29, 2:07 PM
F16550964: D3235.id9202.diff
Tue, Oct 29, 2:07 PM
F16550709: D3235.id.diff
Tue, Oct 29, 1:42 PM
Unknown Object (File)
Mon, Oct 21, 8:22 AM
Unknown Object (File)
Fri, Oct 18, 4:40 PM
Unknown Object (File)
Fri, Oct 18, 8:35 AM
Unknown Object (File)
Wed, Oct 9, 8:15 AM
Unknown Object (File)
Sep 8 2024, 2:59 AM
Subscribers
None

Details

Summary

The following cases are covered:

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

This will make life easier for futurize.

Diff Detail

Repository
rP pykolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sicherha created this revision.
This revision is now accepted and ready to land.Jan 10 2022, 10:00 AM
This revision was landed with ongoing or failed builds.Jan 10 2022, 8:48 PM
This revision was automatically updated to reflect the committed changes.