Skip to content

Commit

Permalink
small set of rule changes in admin scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 24, 2015
1 parent cc03491 commit 5bd6363
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/admin_scripts/base/stylesheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/admin_scripts/extra/css.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/admin_scripts/extra/js.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

import legacy

class JavascriptMinify:
class JavascriptMinify(object):
"""
Class used to minify javascript code.
The minification is done using a classic
Expand Down
2 changes: 1 addition & 1 deletion src/admin_scripts/extra/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5bd6363

Please sign in to comment.