Skip to content

Commit 2351089

Browse files
committed
Various minor cleanups: removing unused imports, whitespace, line wrapping.
1 parent 5470fe6 commit 2351089

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

src/webassets/filter/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
__all__ = ('Filter', 'CallableFilter', 'get_filter', 'register_filter',)
1010

1111

12+
1213
class NameGeneratingMeta(type):
1314
"""Metaclass that will generate a "name" attribute based on the
1415
class name if none is given.

src/webassets/filter/coffeescript.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import os, subprocess
22

33
from webassets.filter import Filter
4+
from webassets.exceptions import FilterError
45

56

67
__all__ = ('CoffeeScriptFilter',)
78

89

910
class CoffeeScriptFilter(Filter):
10-
"""Converts `CoffeeScript <http://jashkenas.github.com/coffee-script/>`_ to real JavaScript.
11+
"""Converts `CoffeeScript <http://jashkenas.github.com/coffee-script/>`_
12+
to real JavaScript.
1113
1214
If you want to combine it with other JavaScript filters, make sure this
1315
one runs first.
@@ -16,7 +18,8 @@ class CoffeeScriptFilter(Filter):
1618
name = 'coffeescript'
1719

1820
def setup(self):
19-
self.coffee = self.get_config('COFFEE_PATH', what='coffee binary', require=False) or 'coffee'
21+
self.coffee = self.get_config(
22+
'COFFEE_PATH', what='coffee binary', require=False) or 'coffee'
2023

2124
def input(self, _in, out, source_path, output_path):
2225
old_dir = os.getcwd()

src/webassets/filter/compass.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
http://groups.google.com/group/compass-users/browse_thread/thread/daf55acda03656d1
2727
"""
2828

29-
30-
import time
3129
import os, subprocess
3230
from os import path
3331
import tempfile
@@ -186,4 +184,4 @@ def input(self, _in, out, source_path, output_path):
186184
# Restore previous working dir
187185
os.chdir(old_wd)
188186
# Clean up the temp dir
189-
shutil.rmtree(tempout)
187+
shutil.rmtree(tempout)

src/webassets/filter/sass.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import time
21
import os, subprocess
3-
import tempfile
42

53
from webassets.filter import Filter
64

tests/test_bundle.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from StringIO import StringIO
33

44
from nose.tools import assert_raises, assert_equals
5-
from nose import SkipTest
65

76
from webassets import Bundle
87
from webassets.bundle import BuildError, BundleError

tests/test_ext/test_django.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from django.template import Template, Context
77
from django_assets import Bundle, register as django_env_register
88
from django_assets.env import get_env, reset as django_env_reset
9-
from webassets.bundle import BuildError
109

1110

1211
AssetsNode = None
1312

13+
1414
def setup_module():
1515
from django.conf import settings
1616
settings.configure(INSTALLED_APPS=['django_assets'])

0 commit comments

Comments
 (0)