Commit a01f1275 by Timothée Peignier

improve variable naming

parent f5218a14
......@@ -11,7 +11,7 @@ class UglifyJSCompressorFilter(FilterBase):
if self.verbose:
command += ' --verbose'
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, \
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE, stderr=subprocess.PIPE)
p.stdin.write(js)
p.stdin.close()
......
......@@ -11,12 +11,12 @@ class YUICompressorFilter(FilterBase):
if self.verbose:
command += ' --verbose'
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, \
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE, stderr=subprocess.PIPE)
p.stdin.write(content)
p.stdin.close()
filtered_css = p.stdout.read()
compressed_content = p.stdout.read()
p.stdout.close()
err = p.stderr.read()
......@@ -31,7 +31,7 @@ class YUICompressorFilter(FilterBase):
if self.verbose:
print err
return filtered_css
return compressed_content
def filter_js(self, js):
return self.filter_common(js, 'js', settings.COMPRESS_YUI_JS_ARGUMENTS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment