python: Resolve a deprecation warning.
authorRussell Bryant <russell@ovn.org>
Tue, 22 Dec 2015 16:30:32 +0000 (11:30 -0500)
committerRussell Bryant <russell@ovn.org>
Tue, 5 Jan 2016 23:16:49 +0000 (18:16 -0500)
commit603e325fa56392a4a139ba00aff5dd416d1c512e
treeddbc29e0888e34ce0deaca0ddd511b92878737b0
parenta0631d92d9b99700f5f305c60403b4d43d77eff2
python: Resolve a deprecation warning.

Resolve the following deprecation warning.  This deprecation warning
advises to use an alternative syntax which is also compatible with
Python 3, where has_key() was removed.

  W601 .has_key() is deprecated, use 'in'

Also fix this related error:

  E713 test for membership should be 'not in'

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Makefile.am
tests/test-jsonrpc.py
tests/test-ovsdb.py
vtep/ovs-vtep