summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-01-29 15:39:07 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-01-31 11:17:45 -0500
commitcabc638548d89390db664329a3c2a8d7633b4598 (patch)
treea78e2a4a332f0d5f239856e3cee35b6a0ce67b2b
parent84e331a3095810ad9505a8a73a31819fa0f569ea (diff)
downloadphosphor-objmgr-cabc638548d89390db664329a3c2a8d7633b4598.tar.gz
phosphor-objmgr-cabc638548d89390db664329a3c2a8d7633b4598.zip
utils: pycodestyle fix
Fix a bug flagged by pycodestyle. Change-Id: I4833b0c294df2f4b6690debdcd6fbb2e312fe70e Tested: No functional change, whitespace only. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--obmc/mapper/server.py7
-rw-r--r--obmc/mapper/utils.py5
2 files changed, 8 insertions, 4 deletions
diff --git a/obmc/mapper/server.py b/obmc/mapper/server.py
index b18b8b5..35415f8 100644
--- a/obmc/mapper/server.py
+++ b/obmc/mapper/server.py
@@ -473,8 +473,11 @@ class ObjectMapper(dbus.service.Object):
traceback.print_exception(*sys.exc_info())
if not owners:
- owned_names = [x for x in self.bus.list_names() if not obmc.dbuslib.bindings.is_unique(x)]
- owners = list(filter(bool, [get_owner(name) for name in owned_names]))
+ owned_names = [
+ x for x in self.bus.list_names()
+ if not obmc.dbuslib.bindings.is_unique(x)]
+ owners = list(
+ filter(bool, [get_owner(name) for name in owned_names]))
for owned_name, o in owners:
if not self.valid_signal(owned_name):
continue
diff --git a/obmc/mapper/utils.py b/obmc/mapper/utils.py
index 6f1b6b6..75b4229 100644
--- a/obmc/mapper/utils.py
+++ b/obmc/mapper/utils.py
@@ -24,7 +24,7 @@ import obmc.mapper
class Wait(object):
def __init__(self, bus, waitlist, *a, **kw):
self.bus = bus
- self.waitlist = dict(list(zip(waitlist, [None]*len(waitlist))))
+ self.waitlist = dict(list(zip(waitlist, [None] * len(waitlist))))
mapper = bus.get_object(
obmc.mapper.MAPPER_NAME,
obmc.mapper.MAPPER_PATH,
@@ -121,5 +121,6 @@ class Wait(object):
if self.done:
return
- for path in [x for x in list(self.waitlist.keys()) if not self.waitlist[x]]:
+ for path in [
+ x for x in list(self.waitlist.keys()) if not self.waitlist[x]]:
self.get_object_async(path, 0)
OpenPOWER on IntegriCloud