python: Resolve pep8 comparison errors.
authorRussell Bryant <russell@ovn.org>
Sat, 12 Dec 2015 17:54:31 +0000 (12:54 -0500)
committerRussell Bryant <russell@ovn.org>
Tue, 5 Jan 2016 23:13:47 +0000 (18:13 -0500)
commit3c057118d16ae0c7dc02c1c87ee2c19b401e39ce
tree50bb6e781d674bf29f49d6ecad7803c18c2732c1
parentbdca6c4b56b9951b95c02f1fc13cbc78b16eee28
python: Resolve pep8 comparison errors.

Resolve pep8 errors:

  E711 comparison to None should be 'if cond is None:'

The reason comparing against None with "is None" is preferred over
"== None" is because a class can define its own equality operator and
produce bizarre unexpected behavior.  Using "is None" has a very
explicit meaning that can not be overridden.

  E721 do not compare types, use 'isinstance()'

This one is actually a mistake by the tool in most cases.
'from ovs.db import types' looks just like types from the Python stdlib.
In those cases, use the full ovs.db.types name.  Fix one case where it
actually was types from the stdlib.

Signed-off-by: Russell Bryant <russell@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Makefile.am
debian/ovs-monitor-ipsec
python/ovs/db/idl.py
python/ovs/db/parser.py
python/ovs/db/schema.py
python/ovs/json.py
python/ovs/jsonrpc.py
tests/test-ovsdb.py
tests/test-reconnect.py
vtep/ovs-vtep