diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-09-08 22:29:01 -0400 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-09-12 21:24:44 +0000 |
commit | f47f5faad52af399946d375e3650ac26b664baf1 (patch) | |
tree | 14f0d72df85d7d90762ca792973f34a72222e478 /pyinventorymgr | |
parent | 7a4d77a86e98f02839213ce040c1d8f2f6be31cc (diff) | |
download | talos-skeleton-f47f5faad52af399946d375e3650ac26b664baf1.tar.gz talos-skeleton-f47f5faad52af399946d375e3650ac26b664baf1.zip |
Use super to construct dbus.service.Object
Change-Id: I830decfc523d435c6b9ecdc9ffffec7956c3b85d
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'pyinventorymgr')
-rw-r--r-- | pyinventorymgr/inventory_items.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pyinventorymgr/inventory_items.py b/pyinventorymgr/inventory_items.py index 456c2f3..16ae6d0 100644 --- a/pyinventorymgr/inventory_items.py +++ b/pyinventorymgr/inventory_items.py @@ -26,15 +26,16 @@ else: class Inventory(DbusProperties, DbusObjectManager): def __init__(self, bus, name): - DbusProperties.__init__(self) - DbusObjectManager.__init__(self) - dbus.service.Object.__init__(self, bus, name) + super(Inventory, self).__init__( + conn=bus, + object_path=name) class InventoryItem(DbusProperties): def __init__(self, bus, name, data): - DbusProperties.__init__(self) - dbus.service.Object.__init__(self, bus, name) + super(InventoryItem, self).__init__( + conn=bus, + object_path=name) self.name = name |