From a868f6eb9c8de4855b8462be71be4e305af4e510 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 25 May 2007 11:30:36 +0100 Subject: [PATCH] services/presence/psutils: Re-order imports conventionally, without dbus.glib. Importing dbus.glib has a side-effect (it sets up the default main loop integration) so it's not something a module should do. --- services/presence/psutils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/presence/psutils.py b/services/presence/psutils.py index c2c1b035..97b1a5f9 100644 --- a/services/presence/psutils.py +++ b/services/presence/psutils.py @@ -14,9 +14,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import dbus, dbus.glib, gobject import logging +import dbus +import gobject + _logger = logging.getLogger('s-p-s.psutils')