Page MenuHomePhorge

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

Authored by sicherha on Jan 8 2022, 11:38 AM.
Tags
None
Referenced Files
F12343671: D3235.id9202.diff
Sat, May 25, 8:01 PM
Unknown Object (File)
Fri, May 24, 3:36 PM
Unknown Object (File)
Thu, May 23, 3:38 PM
Unknown Object (File)
Thu, May 23, 3:38 PM
Unknown Object (File)
Thu, May 23, 3:38 PM
Unknown Object (File)
Mon, May 20, 10:36 AM
Unknown Object (File)
Sun, May 19, 2:12 PM
Unknown Object (File)
Sun, May 19, 5:05 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
Branch
05-remove-keys
Lint
Lint Errors
Unit
No Test Coverage
Build Status
Buildable 37786
Build 15235: arc lint + arc unit

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.