From 237eae4e5ff586b9d3b87899520e2ba6bb71fb66 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 22 May 2013 18:17:54 +0000 Subject: pep8 and pyflakes cleanup --- (limited to 'util') 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): -- cgit v0.9.1