Commit 0abc5bf8 by Timothée Peignier

use recent syntax when we can

parent 394f5941
......@@ -18,9 +18,9 @@ class Compiler(object):
self.storage = storage
self.verbose = verbose
@property
def compilers(self):
return [to_class(compiler) for compiler in settings.PIPELINE_COMPILERS]
compilers = property(compilers)
def compile(self, paths, force=False):
for index, input_path in enumerate(paths):
......
......@@ -43,13 +43,13 @@ class Compressor(object):
self.storage = storage
self.verbose = verbose
@property
def js_compressor(self):
return to_class(settings.PIPELINE_JS_COMPRESSOR)
js_compressor = property(js_compressor)
@property
def css_compressor(self):
return to_class(settings.PIPELINE_CSS_COMPRESSOR)
css_compressor = property(css_compressor)
def compress_js(self, paths, templates=None, **kwargs):
"""Concatenate and compress JS files"""
......
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