Page MenuHomekolab.org

[Python 3] Get rid of .has_key()
ClosedPublic

Authored by sicherha on Jan 8 2022, 11:39 AM.

Details

Summary

dict.has_key(key) was dropped in Python 3.0. Use key in dict
instead.

Diff Detail

Repository
rP pykolab
Branch
06-remove-has_key
Lint
Lint Errors
SeverityLocationCodeMessage
Errorcyruslib.py:43E203PEP8 E203
Errorcyruslib.py:44E203PEP8 E203
Errorcyruslib.py:45E203PEP8 E203
Errorcyruslib.py:48E203PEP8 E203
Errorcyruslib.py:76E701PEP8 E701
Errorcyruslib.py:88E701PEP8 E701
Errorcyruslib.py:107E701PEP8 E701
Errorcyruslib.py:401E701PEP8 E701
Errorcyruslib.py:512E701PEP8 E701
Errorcyruslib.py:529E701PEP8 E701
Errorcyruslib.py:531E701PEP8 E701
Errorcyruslib.py:800E701PEP8 E701
Errorcyruslib.py:814E701PEP8 E701
Errorcyruslib.py:816E701PEP8 E701
Errorpykolab/auth/ldap/syncrepl.py:75E701PEP8 E701
Errorpykolab/auth/ldap/syncrepl.py:76E701PEP8 E701
Errorpykolab/cli/cmd_sync.py:77E111PEP8 E111
Errorpykolab/cli/cmd_sync.py:78E111PEP8 E111
Errorpykolab/cli/cmd_sync.py:79E111PEP8 E111
Errorpykolab/cli/cmd_sync.py:80E111PEP8 E111
Errorpykolab/cli/cmd_sync.py:81E111PEP8 E111
Errorpykolab/cli/cmd_sync.py:89E111PEP8 E111
Errorpykolab/cli/cmd_sync.py:90E111PEP8 E111
Errorpykolab/cli/sieve/cmd_refresh.py:377E203PEP8 E203
Errorpykolab/plugins/sievemgmt/__init__.py:387E203PEP8 E203
Unit
No Unit Test Coverage
Build Status
Buildable 37789
Build 15238: arc lint + arc unit

Event Timeline

sicherha requested review of this revision.Jan 8 2022, 11:39 AM
sicherha created this revision.
mollekopf accepted this revision.Jan 10 2022, 10:07 AM
This revision is now accepted and ready to land.Jan 10 2022, 10:07 AM
This revision was landed with ongoing or failed builds.Jan 10 2022, 8:50 PM
This revision was automatically updated to reflect the committed changes.