Replace uses of `has_key` with `in`
|Reported by:||Ryan J Ollos||Owned by:||Ryan J Ollos|
Replaced uses of deprecated
Description (last modified by )
has_key is formally deprecated since Python 2.6 and even removed in Python 3.0, and I've been removing these in various refactoring changesets (e.g. ), I thought it might be better to create a ticket and replace these everywhere at once.
Additionally, it sounds like this will give a small performance improvement (negligible for nearly all cases I'm sure), and an increment towards #10083.