[thorstenp] remove useless import
This commit is contained in:
parent
aaa82b8202
commit
eb93f2a19e
|
@ -39,7 +39,6 @@ try:
|
|||
except ImportError:
|
||||
pass
|
||||
import dbus
|
||||
import dbus.service
|
||||
import dbus.glib
|
||||
supported = True # does user have D-Bus bindings?
|
||||
except ImportError:
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
# There are more methods, of course, but this is a basic set.
|
||||
|
||||
import os
|
||||
import inspect
|
||||
import types
|
||||
import weakref
|
||||
import gobject
|
||||
import gtk
|
||||
|
@ -203,7 +203,7 @@ class Closure(object):
|
|||
self.userargs = userargs
|
||||
self.remove = remove
|
||||
self.removeargs = removeargs
|
||||
if inspect.ismethod(cb):
|
||||
if isinstance(cb, types.MethodType):
|
||||
self.meth_self = weakref.ref(cb.im_self, self._remove)
|
||||
self.meth_name = cb.func_name
|
||||
elif callable(cb):
|
||||
|
|
|
@ -40,7 +40,6 @@ from common import dbus_support
|
|||
if dbus_support.supported:
|
||||
import dbus
|
||||
import dbus.glib
|
||||
import dbus.service
|
||||
|
||||
|
||||
USER_HAS_PYNOTIFY = True # user has pynotify module
|
||||
|
|
Loading…
Reference in New Issue