Commit 4260faf1 by Timothée Peignier

fix formatting

parent c07721a2
...@@ -232,6 +232,7 @@ class SubProcessCompressor(CompressorBase): ...@@ -232,6 +232,7 @@ class SubProcessCompressor(CompressorBase):
def execute_command(self, command, content): def execute_command(self, command, content):
pipe = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, pipe = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
stdin=subprocess.PIPE, stderr=subprocess.PIPE) stdin=subprocess.PIPE, stderr=subprocess.PIPE)
try: try:
pipe.stdin.write(smart_str(content)) pipe.stdin.write(smart_str(content))
except IOError, e: except IOError, e:
......
...@@ -46,8 +46,7 @@ class Jinja2Compressed(object): ...@@ -46,8 +46,7 @@ class Jinja2Compressed(object):
if type(getattr(pipeline_settings, setting)) == str: if type(getattr(pipeline_settings, setting)) == str:
val = "'%s'" % val val = "'%s'" % val
val = val if val else "''" val = val if val else "''"
expr = "pipeline_settings.%s = %s" % ( expr = "pipeline_settings.%s = %s" % (setting, val)
setting, val)
exec expr exec expr
pipeline_settings.PIPELINE = getattr(django_settings, pipeline_settings.PIPELINE = getattr(django_settings,
'PIPELINE', not django_settings.DEBUG) 'PIPELINE', not django_settings.DEBUG)
......
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