From 7437e344e2048919ad0f933c0db72a375ec146e8 Mon Sep 17 00:00:00 2001 From: Alexandr Skurikhin Name Date: Tue, 10 Apr 2012 18:08:14 +0400 Subject: [PATCH] Remove print statements, fix typo --- livecss/colorizer.py | 4 +--- livecss/theme.py | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/livecss/colorizer.py b/livecss/colorizer.py index 0a738da..482b0d8 100644 --- a/livecss/colorizer.py +++ b/livecss/colorizer.py @@ -18,7 +18,7 @@ def colorize_file(view, state, forse_redraw=False): """Highlights color definition regions by it's real colors. - forse_redraw setted to True forces recolorization + `forse_redraw` set to True forces re-colorization """ @@ -31,13 +31,11 @@ def colorize_file(view, state, forse_redraw=False): state.regions = colored_regions if not state.is_dirty and not forse_redraw: - print "State is clean" return highlight_regions(view, colored_regions, colors, state) if forse_redraw or state.need_generate_theme_file: - print "Regenerating theme" colorized_theme_path = generate_theme(uncolorized_path(theme.abspath), colors) theme.set(colorized_theme_path) diff --git a/livecss/theme.py b/livecss/theme.py index 12ead86..b151947 100644 --- a/livecss/theme.py +++ b/livecss/theme.py @@ -50,11 +50,9 @@ def set(cls, theme_path): :param theme: abs or relpath to SUBLIME_PATH """ if exists(theme_path): - print "Setting theme" cls._settings.set('color_scheme', theme_path) def on_select_new_theme(cls, callback): - print "Registering callback" cls._settings.add_on_change('color_scheme', callback)