diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-11-18 15:14:57 -0800 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-11-18 15:14:57 -0800 |
commit | 18d9ffea4222dadf2fa61171ec8fdc19f94a1880 (patch) | |
tree | 2f6cbf914917a5001489c8c59653d842730f03a4 /contrib | |
parent | d0a05f8fc075ce00768c75388955c45a9d69a9bd (diff) | |
download | m2crypto-18d9ffea4222dadf2fa61171ec8fdc19f94a1880.tar.gz |
Use 'in' instead of 'has_key()' for testing dictionary membership.
In PEP 0290, has_key() was deprecated in Python 2.2 and higher:
https://www.python.org/dev/peps/pep-0290/#testing-dictionary-membership
https://docs.python.org/2.2/whatsnew/node4.html
In Python 3, dict.has_key() was removed:
https://docs.python.org/3.0/whatsnew/3.0.html#builtins
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions