diff --git a/src/admin_scripts/base/stylesheets.py b/src/admin_scripts/base/stylesheets.py index 61b0505..17d56a2 100644 --- a/src/admin_scripts/base/stylesheets.py +++ b/src/admin_scripts/base/stylesheets.py @@ -304,12 +304,9 @@ def skip_rule(start_line, rules_skip): # for each of the rules to skip for rule_skip in rules_skip: # checks if the rule is to be skipped + # and if that's the case breaks the loop skip_rule = rule_skip in start_line - - # in case the rule is to be skipped - if skip_rule: - # stops checking - break + if skip_rule: break # returns the skip rule value return skip_rule diff --git a/src/admin_scripts/extra/css.py b/src/admin_scripts/extra/css.py index 6fe26d5..beac68f 100644 --- a/src/admin_scripts/extra/css.py +++ b/src/admin_scripts/extra/css.py @@ -56,7 +56,7 @@ def simplify_hex_colors(text): @type text: String @param text: The payload text value that is going to - be simplified. + have the color values simplified. @rtype: String @return: The simplified value according to the defined set of rules. diff --git a/src/admin_scripts/extra/js.py b/src/admin_scripts/extra/js.py index 1b2bd5d..a77f079 100644 --- a/src/admin_scripts/extra/js.py +++ b/src/admin_scripts/extra/js.py @@ -39,7 +39,7 @@ import legacy -class JavascriptMinify: +class JavascriptMinify(object): """ Class used to minify javascript code. The minification is done using a classic diff --git a/src/admin_scripts/extra/lib.py b/src/admin_scripts/extra/lib.py index 67a2555..c9a4f3a 100644 --- a/src/admin_scripts/extra/lib.py +++ b/src/admin_scripts/extra/lib.py @@ -106,7 +106,7 @@ def normalize_path(path): # the support for long path names with the prefix token normalized_path = LONG_PATH_PREFIX + normalized_path - # returns the "final" normalized path value resultin from + # returns the "final" normalized path value resulting from # the various normalization processes applied to original path return normalized_path