Don't rely on dbus importing the exceptions module - import it explicitly.

Also divide up imports in a PEP8-compliant way.
This commit is contained in:
Simon McVittie 2007-05-18 15:31:32 +01:00
parent c6ac2873c8
commit 29cc39968d

View File

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