Skip to content

Commit

Permalink
Merge pull request #1 from dnarvaez/unused-imports
Browse files Browse the repository at this point in the history
Remove a lot of unused imports

Acked-by: Manuel Quiñones <manuq@laptop.org>
  • Loading branch information
manuq committed Apr 4, 2013
2 parents a3cda7c + db448c4 commit a776c72
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion examples/alert.py
@@ -1,6 +1,6 @@
from gi.repository import Gtk

from sugar3.graphics.alert import Alert, TimeoutAlert
from sugar3.graphics.alert import TimeoutAlert

def _destroy_cb(widget, data=None):
Gtk.main_quit()
Expand Down
2 changes: 0 additions & 2 deletions examples/radiopalette.py
Expand Up @@ -3,8 +3,6 @@
from sugar3.graphics.radiopalette import RadioPalette, RadioMenuButton, \
RadioToolsButton
from sugar3.graphics.radiotoolbutton import RadioToolButton
from sugar3.graphics.toolbutton import ToolButton
from sugar3.graphics import style

window = Gtk.Window()

Expand Down
1 change: 0 additions & 1 deletion examples/toolbar.py
Expand Up @@ -2,7 +2,6 @@

from sugar3.graphics.toolbutton import ToolButton
from sugar3.graphics.toolbarbox import ToolbarBox, ToolbarButton
from sugar3.graphics import style

window = Gtk.Window()

Expand Down
2 changes: 0 additions & 2 deletions src/sugar3/activity/widgets.py
Expand Up @@ -21,13 +21,11 @@
from gi.repository import Gtk
import gettext
from gi.repository import GConf
import logging

from sugar3.graphics.toolbutton import ToolButton
from sugar3.graphics.toolbarbox import ToolbarButton
from sugar3.graphics.radiopalette import RadioPalette, RadioMenuButton
from sugar3.graphics.radiotoolbutton import RadioToolButton
from sugar3.graphics.toolbox import Toolbox
from sugar3.graphics.xocolor import XoColor
from sugar3.graphics.icon import Icon
from sugar3.bundle.activitybundle import ActivityBundle
Expand Down
2 changes: 0 additions & 2 deletions src/sugar3/bundle/activitybundle.py
Expand Up @@ -26,10 +26,8 @@
import shutil
import tempfile
import logging
import warnings

from sugar3 import env
from sugar3 import util
from sugar3.bundle.bundle import Bundle, \
MalformedBundleException, NotInstalledException
from sugar3.bundle.bundleversion import NormalizedVersion
Expand Down
1 change: 0 additions & 1 deletion src/sugar3/graphics/icon.py
Expand Up @@ -32,7 +32,6 @@
from gi.repository import Rsvg
import cairo

from sugar3.graphics import style
from sugar3.graphics.xocolor import XoColor
from sugar3.util import LRU

Expand Down
1 change: 0 additions & 1 deletion src/sugar3/graphics/palette.py
Expand Up @@ -27,7 +27,6 @@
from gi.repository import GObject
from gi.repository import Pango

from sugar3.graphics import palettegroup
from sugar3.graphics import animator
from sugar3.graphics import style
from sugar3.graphics.icon import Icon
Expand Down
2 changes: 0 additions & 2 deletions src/sugar3/graphics/palettemenu.py
Expand Up @@ -14,8 +14,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

import logging

from gi.repository import GObject
from gi.repository import Gtk
from gi.repository import Pango
Expand Down
1 change: 0 additions & 1 deletion src/sugar3/graphics/style.py
Expand Up @@ -26,7 +26,6 @@
import logging

from gi.repository import Gdk
from gi.repository import Gtk
from gi.repository import Pango
from gi.repository import GConf

Expand Down
1 change: 0 additions & 1 deletion src/sugar3/graphics/window.py
Expand Up @@ -24,7 +24,6 @@
from gi.repository import Gdk
from gi.repository import GdkX11
from gi.repository import Gtk
import warnings

from sugar3.graphics.icon import Icon
from sugar3.graphics import palettegroup
Expand Down
1 change: 0 additions & 1 deletion tests/graphics/progressicon.py
Expand Up @@ -23,7 +23,6 @@
from gi.repository import GObject

from sugar3.graphics.progressicon import ProgressIcon
from sugar3.graphics.icon import Icon, get_surface
from sugar3.graphics import style

import common
Expand Down
3 changes: 0 additions & 3 deletions tests/graphics/ticket2999.py
Expand Up @@ -21,9 +21,6 @@

from gi.repository import Gtk

from sugar3.graphics.palette import Palette
from sugar3.graphics.icon import Icon

import common

test = common.Test()
Expand Down
1 change: 0 additions & 1 deletion tests/lib/test_mime.py
Expand Up @@ -17,7 +17,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

import sys
import unittest

from sugar import mime
Expand Down

0 comments on commit a776c72

Please sign in to comment.