[Sugar-devel] [PATCH sugar v2 11/21] pylint cleanup: remove unused imports

Simon Schampijer simon at schampijer.de
Wed Nov 24 13:13:18 EST 2010


Reviewed-by: Simon Schampijer<simon at schampijer.de>

On 11/19/2010 10:13 PM, Sascha Silbe wrote:
> Reviewed-by: James Cameron<quozl at laptop.org>
> CC: Aleksey Lim<alsroot at member.fsf.org>
> Signed-off-by: Sascha Silbe<sascha-pgp at silbe.org>
>
> diff --git a/extensions/deviceicon/network.py b/extensions/deviceicon/network.py
> index 33b9eac..c9aee50 100644
> --- a/extensions/deviceicon/network.py
> +++ b/extensions/deviceicon/network.py
> @@ -23,7 +23,6 @@ import logging
>   import hashlib
>   import socket
>   import struct
> -import re
>   import datetime
>   import time
>   import gtk
> @@ -40,12 +39,9 @@ from sugar.graphics.tray import TrayIcon
>   from sugar.graphics.menuitem import MenuItem
>   from sugar.graphics.icon import Icon
>   from sugar.graphics import xocolor
> -from sugar.util import unique_id
>   from sugar import profile
>
>   from jarabe.model import network
> -from jarabe.model.network import Settings
> -from jarabe.model.network import IP4Config
>   from jarabe.frame.frameinvoker import FrameWidgetInvoker
>   from jarabe.view.pulsingicon import PulsingIcon
>
> diff --git a/extensions/globalkey/screenshot.py b/extensions/globalkey/screenshot.py
> index b9408d4..0afe964 100644
> --- a/extensions/globalkey/screenshot.py
> +++ b/extensions/globalkey/screenshot.py
> @@ -17,7 +17,6 @@
>
>   import os
>   import tempfile
> -import time
>   from gettext import gettext as _
>
>   import gtk
> diff --git a/src/jarabe/controlpanel/gui.py b/src/jarabe/controlpanel/gui.py
> index 3c99c50..9d1cc9e 100644
> --- a/src/jarabe/controlpanel/gui.py
> +++ b/src/jarabe/controlpanel/gui.py
> @@ -17,8 +17,6 @@
>   import os
>   import logging
>   from gettext import gettext as _
> -import sys
> -import traceback
>
>   import gobject
>   import gtk
> diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py
> index 2494952..be60c4c 100644
> --- a/src/jarabe/desktop/activitieslist.py
> +++ b/src/jarabe/desktop/activitieslist.py
> @@ -30,12 +30,9 @@ from sugar.graphics.icon import Icon, CellRendererIcon
>   from sugar.graphics.xocolor import XoColor
>   from sugar.graphics.menuitem import MenuItem
>   from sugar.graphics.alert import Alert
> -from sugar.activity import activityfactory
> -from sugar.activity.activityhandle import ActivityHandle
>
>   from jarabe.model import bundleregistry
>   from jarabe.view.palettes import ActivityPalette
> -from jarabe.view import launcher
>   from jarabe.journal import misc
>
>
> diff --git a/src/jarabe/desktop/favoritesview.py b/src/jarabe/desktop/favoritesview.py
> index d79c2f4..64baa15 100644
> --- a/src/jarabe/desktop/favoritesview.py
> +++ b/src/jarabe/desktop/favoritesview.py
> @@ -30,7 +30,6 @@ from sugar.graphics.menuitem import MenuItem
>   from sugar.graphics.alert import Alert
>   from sugar.graphics.xocolor import XoColor
>   from sugar.activity import activityfactory
> -from sugar.activity.activityhandle import ActivityHandle
>   from sugar import dispatch
>   from sugar.datastore import datastore
>
> @@ -38,7 +37,6 @@ from jarabe.view.palettes import JournalPalette
>   from jarabe.view.palettes import CurrentActivityPalette, ActivityPalette
>   from jarabe.view.buddyicon import BuddyIcon
>   from jarabe.view.buddymenu import BuddyMenu
> -from jarabe.view import launcher
>   from jarabe.model.buddy import get_owner_instance
>   from jarabe.model import shell
>   from jarabe.model import bundleregistry
> diff --git a/src/jarabe/journal/listmodel.py b/src/jarabe/journal/listmodel.py
> index fb34c6a..55f83f4 100644
> --- a/src/jarabe/journal/listmodel.py
> +++ b/src/jarabe/journal/listmodel.py
> @@ -19,7 +19,6 @@ import logging
>   import simplejson
>   import gobject
>   import gtk
> -import time
>   from gettext import gettext as _
>
>   from sugar.graphics.xocolor import XoColor
> diff --git a/src/jarabe/journal/palettes.py b/src/jarabe/journal/palettes.py
> index 631abc6..9ae1afb 100644
> --- a/src/jarabe/journal/palettes.py
> +++ b/src/jarabe/journal/palettes.py
> @@ -28,7 +28,6 @@ from sugar.graphics.icon import Icon
>   from sugar.graphics.xocolor import XoColor
>   from sugar import mime
>
> -from jarabe.model import bundleregistry
>   from jarabe.model import friends
>   from jarabe.model import filetransfer
>   from jarabe.model import mimeregistry
> diff --git a/src/jarabe/view/palettes.py b/src/jarabe/view/palettes.py
> index db86465..cb30ed8 100644
> --- a/src/jarabe/view/palettes.py
> +++ b/src/jarabe/view/palettes.py
> @@ -28,8 +28,6 @@ from sugar.graphics.menuitem import MenuItem
>   from sugar.graphics.icon import Icon
>   from sugar.graphics import style
>   from sugar.graphics.xocolor import XoColor
> -from sugar.activity import activityfactory
> -from sugar.activity.activityhandle import ActivityHandle
>
>   from jarabe.model import shell
>   from jarabe.view.viewsource import setup_view_source



More information about the Sugar-devel mailing list