[PATCH phosphor-objmgr 1/2] Pep8 fixes
OpenBMC Patches
openbmc-patches at stwcx.xyz
Sat Jun 25 05:10:48 AEST 2016
From: Brad Bishop <bradleyb at fuzziesquirrel.com>
A few of these slipped by.
Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
phosphor-mapper | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/phosphor-mapper b/phosphor-mapper
index ea30f1b..a2d007c 100644
--- a/phosphor-mapper
+++ b/phosphor-mapper
@@ -174,13 +174,11 @@ class ObjectMapper(dbus.service.Object):
gobject.idle_add(self.discover)
self.bus.add_signal_receiver(
self.bus_handler,
- dbus_interface=
- dbus.BUS_DAEMON_IFACE,
+ dbus_interface=dbus.BUS_DAEMON_IFACE,
signal_name='NameOwnerChanged')
self.bus.add_signal_receiver(
self.interfaces_added_handler,
- dbus_interface=
- dbus.BUS_DAEMON_IFACE + '.ObjectManager',
+ dbus_interface=dbus.BUS_DAEMON_IFACE + '.ObjectManager',
signal_name='InterfacesAdded',
sender_keyword='sender',
path_keyword='sender_path')
@@ -319,8 +317,8 @@ class ObjectMapper(dbus.service.Object):
return iface == dbus.BUS_DAEMON_IFACE + '.ObjectManager' or \
self.intf_match(iface)
if not owners:
- owned_names = [x for x in self.bus.list_names()
- if self.bus_match(x)]
+ owned_names = [
+ x for x in self.bus.list_names() if self.bus_match(x)]
owners = [self.bus.get_name_owner(x) for x in owned_names]
owners = zip(owned_names, owners)
for owned_name, o in owners:
--
2.9.0
More information about the openbmc
mailing list