[thorstenp] remove useless import

This commit is contained in:
Yann Leboulanger 2008-11-05 20:00:18 +00:00
parent aaa82b8202
commit eb93f2a19e
3 changed files with 2 additions and 4 deletions

View File

@ -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:

View File

@ -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):

View File

@ -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