summaryrefslogtreecommitdiff
path: root/examples/python/dbus/checkpoint.py
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-05-06 23:42:13 +0200
committerThomas Haller <thaller@redhat.com>2020-05-07 13:58:15 +0200
commit8ad448444a14cbb421e89509da9c2a5d30eb4004 (patch)
tree4af555afc50a6ee2d21867338a867a2658a457f4 /examples/python/dbus/checkpoint.py
parentc7d0a8605067a7b86a36bc2ce5470d0367a4d737 (diff)
downloadNetworkManager-8ad448444a14cbb421e89509da9c2a5d30eb4004.tar.gz
examples: avoid "x == None" checks in python examples
lgmt.com says "Testing for None should use the is operator".
Diffstat (limited to 'examples/python/dbus/checkpoint.py')
-rwxr-xr-xexamples/python/dbus/checkpoint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/dbus/checkpoint.py b/examples/python/dbus/checkpoint.py
index 62c7573b8c..1ea1b1a7fc 100755
--- a/examples/python/dbus/checkpoint.py
+++ b/examples/python/dbus/checkpoint.py
@@ -41,7 +41,7 @@ devList = []
for arg in sys.argv[2:]:
path = GetDevicePath(arg)
- if path == None:
+ if path is None:
raise Exception("NetworkManager knows nothing about %s" % arg)
else:
devList.append(path)