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:
committed by
Peter Hutterer
parent
9601ba1323
commit
617cd628ea
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user