summaryrefslogtreecommitdiffstats
path: root/pytools
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2017-10-11 17:38:10 +1030
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-10-16 15:18:18 +0000
commit47f8ff974d9f0fc81b57d61d0bfe6f2ba6ad0cd8 (patch)
tree9376c866785eb1c410c940f603eaf4ea9d6a4dde /pytools
parente44ee593ce2c4ec94401675bd83258d941523220 (diff)
downloadtalos-skeleton-47f8ff974d9f0fc81b57d61d0bfe6f2ba6ad0cd8.tar.gz
talos-skeleton-47f8ff974d9f0fc81b57d61d0bfe6f2ba6ad0cd8.zip
pytools: obmcutil: Drop parentheses from conditions
Change-Id: I85b74febc33e8f44d9df86718ce6e3ba1d6d6933 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'pytools')
-rw-r--r--pytools/obmcutil6
1 files changed, 3 insertions, 3 deletions
diff --git a/pytools/obmcutil b/pytools/obmcutil
index 1aa38b4..396a394 100644
--- a/pytools/obmcutil
+++ b/pytools/obmcutil
@@ -109,14 +109,14 @@ def main():
if prop:
dbus_iface = dbus.Interface(dbus_obj, "org.freedesktop.DBus.Properties")
- if (objinfo.has_key('value')):
+ if objinfo.has_key('value'):
val = objinfo['value']
else:
- if(len(sys.argv) > 0):
+ if len(sys.argv) > 0:
val = eval(sys.argv.pop(0))
else:
val = None
- if(val is not None):
+ if val is not None:
dbus_iface.Set(iface, prop, val)
else:
dbus_prop = dbus_iface.Get(iface, prop)
OpenPOWER on IntegriCloud