summaryrefslogtreecommitdiffstats
path: root/pytools
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2017-10-12 01:37:07 +1030
committerAndrew Jeffery <andrew@aj.id.au>2017-10-17 16:30:51 +1030
commit08e149bb8e4637132cc7ba19805178464ad5e164 (patch)
tree0ac69dcadf0e5e11f6da5074dbaa8c4473abb8f5 /pytools
parent81707a1f8a0503d81c6b6c1f6d08bd3dac19f556 (diff)
downloadtalos-skeleton-08e149bb8e4637132cc7ba19805178464ad5e164.tar.gz
talos-skeleton-08e149bb8e4637132cc7ba19805178464ad5e164.zip
pytools: obmcutil: Use 'in' test rather than dict.has_key()
Change-Id: I51b4d8a9760e0c73f0c36ff6619a484718db3a4b Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'pytools')
-rw-r--r--pytools/obmcutil4
1 files changed, 2 insertions, 2 deletions
diff --git a/pytools/obmcutil b/pytools/obmcutil
index 1b850fc..2661da0 100644
--- a/pytools/obmcutil
+++ b/pytools/obmcutil
@@ -121,9 +121,9 @@ def run_one_command(dbus_bus, descriptor, args):
dbus_obj = dbus_bus.get_object(bus, obj)
result = None
- if descriptor.has_key('property'):
+ if 'property' in descriptor:
dbus_iface = dbus.Interface(dbus_obj, "org.freedesktop.DBus.Properties")
- if descriptor.has_key('value'):
+ if 'value' in descriptor:
result = run_set_property(dbus_bus, dbus_iface, descriptor, args)
else:
prop = descriptor['property']
OpenPOWER on IntegriCloud