Permalink
Browse files

Switching the GUdev.Client calls into GUdev.Client.new ones

  • Loading branch information...
javihernandez committed Apr 7, 2012
1 parent 521f84b commit 0b6940a16e10706bd1ed779dc762a8b916a5607c
Showing with 3 additions and 3 deletions.
  1. +3 −3 udevdiscover/devicefinder.py
@@ -27,7 +27,7 @@
import device
def get_subsystems():
client = GUdev.Client()
client = GUdev.Client.new('')
subsys = []
for device in client.query_by_subsystem('*'):
@@ -59,7 +59,7 @@ def __init__(self, subsystems='', parent_tree=False):
'''
GObject.GObject.__init__(self)
self.client = GUdev.Client()
self.client = GUdev.Client.new('subsystems')
self.subsystems = subsystems
self.parent_tree = parent_tree
self.devices_tree = {}
@@ -68,7 +68,7 @@ def __init__(self, subsystems='', parent_tree=False):
self.client.connect('uevent', self.event)
def scan_subsystems(self, subsystems='', parent_tree=False):
self.client = GUdev.Client()
self.client = GUdev.Client.new(subsystems)
self.subsystems = subsystems
self.devices_tree = {}
self.devices_list = []

0 comments on commit 0b6940a

Please sign in to comment.