From 29cc39968d491288ee460c8daa066479592d7e2b Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 18 May 2007 15:31:32 +0100 Subject: [PATCH] Don't rely on dbus importing the exceptions module - import it explicitly. Also divide up imports in a PEP8-compliant way. --- sugar/presence/presenceservice.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sugar/presence/presenceservice.py b/sugar/presence/presenceservice.py index fc9d13e1..9d435e7e 100644 --- a/sugar/presence/presenceservice.py +++ b/sugar/presence/presenceservice.py @@ -16,9 +16,13 @@ # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. -import dbus, dbus.glib, gobject import logging +import dbus +import dbus.exceptions +import dbus.glib +import gobject + # XXX use absolute imports # from sugar.presence import buddy, activity # this *kind* of relative import is deprecated