Permalink
Browse files

fixed pyflake problems

  • Loading branch information...
1 parent d542745 commit eb64bc1016c92c52a85fce2127f5f045c9f04032 @peterbe peterbe committed Sep 11, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 compressor/contrib/jinja2ext.py
View
11 compressor/contrib/jinja2ext.py
@@ -3,9 +3,10 @@
from jinja2.exceptions import TemplateSyntaxError
from compressor.exceptions import OfflineGenerationError
from compressor.templatetags.compress import OUTPUT_FILE, CompressorMixin
-from compressor.cache import (get_offline_hexdigest,
+from compressor.cache import (get_offline_hexdigest,
get_offline_manifest)
+
class CompressorExtension(CompressorMixin, Extension):
tags = set(['compress'])
@@ -31,7 +32,7 @@ def parse(self, parser):
args.append(nodes.Const('file'))
args.append(nodes.ContextReference())
body = parser.parse_statements(['name:endcompress'], drop_needle=True)
- return nodes.CallBlock(self.call_method('_compress', args), [], [],
+ return nodes.CallBlock(self.call_method('_compress', args), [], [],
body).set_lineno(lineno)
def _compress(self, kind, mode, context, caller):
@@ -40,13 +41,13 @@ def _compress(self, kind, mode, context, caller):
mode = mode or OUTPUT_FILE
original_content = caller()
- context = {
+ context = {
'original_content': original_content
- }
+ }
return self.render_compressed(context, kind, mode, forced=forced)
def render_offline(self, context, forced):
- """
+ """
If enabled and in offline mode, and not forced check the offline cache
and return the result if given
"""

0 comments on commit eb64bc1

Please sign in to comment.