diff options
author | Walter Bender <walter@sugarlabs.org> | 2013-05-22 18:17:54 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2013-05-22 18:17:54 (GMT) |
commit | 237eae4e5ff586b9d3b87899520e2ba6bb71fb66 (patch) | |
tree | d1368767dea5cb4704990753560ef6a9f6e95454 | |
parent | 11333cef29df63b60f56f61d66fb569f2471bf35 (diff) |
pep8 and pyflakes cleanup
-rw-r--r-- | util/RtfParser.py | 3 | ||||
-rw-r--r-- | util/configfile.py | 4 | ||||
-rw-r--r-- | util/configwizard.py | 6 | ||||
-rw-r--r-- | util/helpbutton.py | 3 | ||||
-rw-r--r-- | util/menubuilder.py | 1 |
5 files changed, 6 insertions, 11 deletions
diff --git a/util/RtfParser.py b/util/RtfParser.py index 9a141a4..66e54c2 100644 --- a/util/RtfParser.py +++ b/util/RtfParser.py @@ -12,9 +12,6 @@ # Boston, MA 02111-1307, USA. -import sys - - class RtfException(Exception): pass diff --git a/util/configfile.py b/util/configfile.py index adabb34..dead00a 100644 --- a/util/configfile.py +++ b/util/configfile.py @@ -26,8 +26,8 @@ class ConfigFile(gobject.GObject): 'configuration-loaded': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ()), 'configuration-saved': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, - ()), - } + ()), + } def __init__(self, config_file_path, valid_keys={}): gobject.GObject.__init__(self) diff --git a/util/configwizard.py b/util/configwizard.py index 6c66bd1..5194ac5 100644 --- a/util/configwizard.py +++ b/util/configwizard.py @@ -169,8 +169,7 @@ def test_wizard_from_config_file_obj(test_config_file): {"item_label": "Password", "item_type": "text", "item_name": "password"}, {"item_label": "Register", "item_type": "text", - "item_name": "register"} - ] + "item_name": "register"}] config_w.set_config_items(config_items) config_w.set_config_file_obj(c) config_w.show() @@ -206,8 +205,7 @@ def test_wizard_from_config_file_path(test_config_file): {"item_label": "Password", "item_type": "text", "item_name": "password"}, {"item_label": "Register", "item_type": "text", - "item_name": "register"} - ] + "item_name": "register"}] config_w.set_config_items(config_items) config_w.show(True) diff --git a/util/helpbutton.py b/util/helpbutton.py index 47a36cd..aff4fc5 100644 --- a/util/helpbutton.py +++ b/util/helpbutton.py @@ -25,9 +25,8 @@ import gtk from sugar.graphics.toolbutton import ToolButton from sugar.graphics.icon import Icon -from sugar.graphics import style -from TurtleArt.tapalette import palette_names, help_windows +from TurtleArt.tapalette import help_windows import logging _logger = logging.getLogger('turtleart-activity') diff --git a/util/menubuilder.py b/util/menubuilder.py index c950424..94f4a0a 100644 --- a/util/menubuilder.py +++ b/util/menubuilder.py @@ -19,6 +19,7 @@ import gtk MENUBAR = {} + class MenuBuilder(): @classmethod def get_sub_menu_by_name(cls, name): |