remove imort dbus.glib to remove a warning
This commit is contained in:
parent
50ddf56b58
commit
a581f10236
|
@ -48,7 +48,6 @@ if dbus_support.supported:
|
|||
SERVICE = 'org.gajim.dbusplugin'
|
||||
|
||||
import dbus.service
|
||||
import dbus.glib
|
||||
# type mapping
|
||||
|
||||
# in most cases it is a utf-8 string
|
||||
|
|
|
@ -33,7 +33,8 @@ _GAJIM_ERROR_IFACE = 'org.gajim.dbus.Error'
|
|||
|
||||
try:
|
||||
import dbus
|
||||
import dbus.glib
|
||||
from dbus.mainloop.glib import DBusGMainLoop
|
||||
DBusGMainLoop(set_as_default=True)
|
||||
except ImportError:
|
||||
supported = False
|
||||
if not os.name == 'nt': # only say that to non Windows users
|
||||
|
|
|
@ -25,7 +25,6 @@ from common import pep
|
|||
from common import dbus_support
|
||||
if dbus_support.supported:
|
||||
import dbus
|
||||
import dbus.glib
|
||||
|
||||
class LocationListener:
|
||||
_instance = None
|
||||
|
|
|
@ -21,7 +21,6 @@ import logging
|
|||
log = logging.getLogger('gajim.c.z.zeroconf_avahi')
|
||||
|
||||
try:
|
||||
import dbus.glib
|
||||
import dbus.exceptions
|
||||
except ImportError, e:
|
||||
pass
|
||||
|
|
|
@ -31,7 +31,6 @@ if __name__ == '__main__':
|
|||
from common import dbus_support
|
||||
if dbus_support.supported:
|
||||
import dbus
|
||||
import dbus.glib
|
||||
|
||||
class MusicTrackInfo(object):
|
||||
__slots__ = ['title', 'album', 'artist', 'duration', 'track_number',
|
||||
|
|
|
@ -64,7 +64,6 @@ from common import dbus_support
|
|||
|
||||
if dbus_support.supported:
|
||||
import dbus
|
||||
import dbus.glib
|
||||
|
||||
try:
|
||||
from common.dbus_support import system_bus
|
||||
|
|
|
@ -41,7 +41,6 @@ from common import ged
|
|||
from common import dbus_support
|
||||
if dbus_support.supported:
|
||||
import dbus
|
||||
import dbus.glib
|
||||
|
||||
|
||||
USER_HAS_PYNOTIFY = True # user has pynotify module
|
||||
|
|
|
@ -43,7 +43,6 @@ if dbus_support.supported:
|
|||
import dbus
|
||||
if dbus_support:
|
||||
import dbus.service
|
||||
import dbus.glib
|
||||
|
||||
INTERFACE = 'org.gajim.dbus.RemoteInterface'
|
||||
OBJ_PATH = '/org/gajim/dbus/RemoteObject'
|
||||
|
|
|
@ -34,7 +34,6 @@ def on_suspend(*args, **kwargs):
|
|||
|
||||
if dbus_support.supported:
|
||||
import dbus
|
||||
import dbus.glib
|
||||
|
||||
try:
|
||||
from common.dbus_support import system_bus
|
||||
|
@ -47,4 +46,4 @@ if dbus_support.supported:
|
|||
'/org/freedesktop/UPower')
|
||||
supported = True
|
||||
except Exception:
|
||||
pass
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue