diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2017-10-11 17:46:29 +1030 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-10-16 15:18:49 +0000 |
commit | b40e64be7555a95214e6c7065373503fdc465eb5 (patch) | |
tree | c3352535e2863d47435891dce99787ff46633f73 /pytools | |
parent | 47f8ff974d9f0fc81b57d61d0bfe6f2ba6ad0cd8 (diff) | |
download | talos-skeleton-b40e64be7555a95214e6c7065373503fdc465eb5.tar.gz talos-skeleton-b40e64be7555a95214e6c7065373503fdc465eb5.zip |
pytools: obmcutil: Properly use format string
This changes the format slightly, but not for the worse in my opinion.
Change-Id: Ie9297c22f8c3ceff4fc56ae567dbdbb0f128dd51
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'pytools')
-rw-r--r-- | pytools/obmcutil | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pytools/obmcutil b/pytools/obmcutil index 396a394..48b90dd 100644 --- a/pytools/obmcutil +++ b/pytools/obmcutil @@ -120,7 +120,7 @@ def main(): dbus_iface.Set(iface, prop, val) else: dbus_prop = dbus_iface.Get(iface, prop) - print '{:<20}'.format(prop+": ") + str(dbus_prop) + print '{:<20}: {}'.format(prop, str(dbus_prop)) else: dbus_iface = dbus.Interface(dbus_obj, "org.freedesktop.DBus.Properties") props = dbus_iface.GetAll(iface) |