diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2017-10-11 17:50:10 +1030 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-10-16 15:19:25 +0000 |
commit | fb8e1014e727af6213c1dc409a774045202f6b7d (patch) | |
tree | 023001bd5856df9431ec05bbb95a3372ede4d943 /pytools | |
parent | b40e64be7555a95214e6c7065373503fdc465eb5 (diff) | |
download | blackbird-skeleton-fb8e1014e727af6213c1dc409a774045202f6b7d.tar.gz blackbird-skeleton-fb8e1014e727af6213c1dc409a774045202f6b7d.zip |
pytools: obmcutil: Assign None to val by default
And remove a now-redundant branch.
Change-Id: I92e91cfb307a98cd60a26e5e5d34bf0ddc384d3f
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'pytools')
-rw-r--r-- | pytools/obmcutil | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pytools/obmcutil b/pytools/obmcutil index 48b90dd..3234e8a 100644 --- a/pytools/obmcutil +++ b/pytools/obmcutil @@ -109,13 +109,12 @@ def main(): if prop: dbus_iface = dbus.Interface(dbus_obj, "org.freedesktop.DBus.Properties") + val = None if objinfo.has_key('value'): val = objinfo['value'] else: if len(sys.argv) > 0: val = eval(sys.argv.pop(0)) - else: - val = None if val is not None: dbus_iface.Set(iface, prop, val) else: |