Skip to content

Commit 9bab8a2

Browse files
author
Juan Carlos
committed
Fix log
1 parent 155bfa2 commit 9bab8a2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

css_html_js_minify/js_minifier.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
from io import StringIO # pure-Python StringIO supports unicode.
1111

12-
import logging as log
13-
1412
from .css_minifier import condense_semicolons
1513

1614

@@ -19,7 +17,6 @@
1917

2018
def remove_commented_lines(js):
2119
"""Force remove commented out lines from Javascript."""
22-
log.debug("Force remove commented out lines from Javascript.")
2320
result = ""
2421
for line in js.splitlines():
2522
line = re.sub(r"/\*.*\*/" ,"" ,line) # (/*COMMENT */)
@@ -30,7 +27,6 @@ def remove_commented_lines(js):
3027

3128
def simple_replacer_js(js):
3229
"""Force strip simple replacements from Javascript."""
33-
log.debug("Force strip simple replacements from Javascript.")
3430
return condense_semicolons(js.replace("debugger;", ";").replace(
3531
";}", "}").replace("; ", ";").replace(" ;", ";").rstrip("\n;"))
3632

@@ -45,7 +41,6 @@ def js_minify_keep_comments(js):
4541

4642
def force_single_line_js(js):
4743
"""Force Javascript to a single line, even if need to add semicolon."""
48-
log.debug("Forcing JS from ~{0} to 1 Line.".format(len(js.splitlines())))
4944
return ";".join(js.splitlines()) if len(js.splitlines()) > 1 else js
5045

5146

0 commit comments

Comments
 (0)