Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/port
diff options
context:
space:
mode:
authorSimon Schampijer <simon@laptop.org>2013-01-23 12:57:06 (GMT)
committer Simon Schampijer <simon@laptop.org>2013-01-31 20:18:17 (GMT)
commit92a65d21932553b893c27f37eb12e77e56f05802 (patch)
treeffe045d5e8ebc49099e78cd822cc9561ff447ac4 /port
parentcb71d268f900270bcbc28b7dddf02a37f3f21883 (diff)
Convert the sugar imports to sugar3
Diffstat (limited to 'port')
-rw-r--r--port/chooser.py4
-rw-r--r--port/roundbox.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/port/chooser.py b/port/chooser.py
index f813174..c03037c 100644
--- a/port/chooser.py
+++ b/port/chooser.py
@@ -17,8 +17,8 @@
from gi.repository import Gtk
import logging
-from sugar import mime
-from sugar.graphics.objectchooser import ObjectChooser
+from sugar3 import mime
+from sugar3.graphics.objectchooser import ObjectChooser
TEXT = hasattr(mime, 'GENERIC_TYPE_TEXT') and mime.GENERIC_TYPE_TEXT or None
IMAGE = hasattr(mime, 'GENERIC_TYPE_IMAGE') and mime.GENERIC_TYPE_IMAGE or None
diff --git a/port/roundbox.py b/port/roundbox.py
index 02cc1a3..8f5a184 100644
--- a/port/roundbox.py
+++ b/port/roundbox.py
@@ -2,7 +2,7 @@ import math
from gi.repository import Gtk
-from sugar.graphics import style
+from sugar3.graphics import style
class RoundBox(Gtk.HBox):