1
0
forked from drath/libratbag

python: replace == None with is None

== checks for value equivalence, but in this case what we
really want is address equivalence. Hence we use is.
This commit is contained in:
Jente Hidskes
2017-03-30 10:42:55 +02:00
committed by Peter Hutterer
parent 9601ba1323
commit 617cd628ea

View File

@@ -49,7 +49,7 @@ class _RatbagdDBus(object):
except GLib.GError:
raise RatbagdDBusUnavailable()
if self._proxy.get_name_owner() == None:
if self._proxy.get_name_owner() is None:
raise RatbagdDBusUnavailable()
def dbus_property(self, property):