This is an archive of the discontinued LLVM Phabricator instance.

[utils] Use operator "in" instead of bound function "has_key"
ClosedPublic

Authored by rogfer01 on Dec 4 2018, 10:45 PM.

Details

Summary

has_key has been removed in Python 3. The in comparison operator can be used instead.

Diff Detail

Event Timeline

rogfer01 created this revision.Dec 4 2018, 10:45 PM
RKSimon edited reviewers, added: gbedwell, MaskRay; removed: RKSimon.Dec 5 2018, 2:02 AM
gbedwell accepted this revision.Dec 5 2018, 9:27 AM

LGTM.

This revision is now accepted and ready to land.Dec 5 2018, 9:27 AM
MaskRay accepted this revision.Dec 5 2018, 9:45 AM

Thanks for the review @gbedwell @MaskRay

I will commit it shortly.

This revision was automatically updated to reflect the committed changes.