Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PEP8 cleanup

  • Loading branch information...
commit 6f21dd4bb2170814cb0decd282f89c153cc6b542 1 parent 09dc849
@anttihirvonen anttihirvonen authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 compressor/base.py
  2. +2 −2 compressor/tests/test_base.py
View
6 compressor/base.py
@@ -7,8 +7,8 @@
from django.template import Context
from django.template.loader import render_to_string
from django.utils.encoding import smart_unicode
-from django.utils.safestring import mark_safe
from django.utils.importlib import import_module
+from django.utils.safestring import mark_safe
from compressor.cache import get_hexdigest, get_mtime
@@ -214,7 +214,7 @@ def precompile(self, content, kind=None, elem=None, filename=None, **kwargs):
except ImportError:
return True, CompilerFilter(content, filter_type=self.type,
command=filter_or_command, filename=filename).input(
- **kwargs)
+ **kwargs)
try:
precompiler_class = getattr(mod, cls_name)
except AttributeError:
@@ -223,7 +223,7 @@ def precompile(self, content, kind=None, elem=None, filename=None, **kwargs):
else:
return True, precompiler_class(content, attrs,
filter_type=self.type, filename=filename).input(
- **kwargs)
+ **kwargs)
return False, content
def filter(self, content, method, **kwargs):
View
4 compressor/tests/test_base.py
@@ -148,7 +148,7 @@ def test_precompiler_class_used(self):
original_precompilers = settings.COMPRESS_PRECOMPILERS
settings.COMPRESS_ENABLED = True
settings.COMPRESS_PRECOMPILERS = (
- ('text/foobar', 'compressor.tests.base.TestPrecompiler'),
+ ('text/foobar', 'compressor.tests.base.TestPrecompiler'),
)
css = '<style type="text/foobar">p { border:10px solid red;}</style>'
css_node = CssCompressor(css)
@@ -160,7 +160,7 @@ def test_nonexistent_precompiler_error(self):
original_precompilers = settings.COMPRESS_PRECOMPILERS
settings.COMPRESS_ENABLED = True
settings.COMPRESS_PRECOMPILERS = (
- ('text/foobar', 'compressor.tests.base.NonexistentFilter'),
+ ('text/foobar', 'compressor.tests.base.NonexistentFilter'),
)
css = '<style type="text/foobar">p { border:10px solid red;}</style>'
css_node = CssCompressor(css)
Please sign in to comment.
Something went wrong with that request. Please try again.