Skip to content

Commit 5996967

Browse files
committed
Cleanup code.
1 parent c83615a commit 5996967

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

pipeline/finders.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def list(self, ignore_patterns):
2222
else:
2323
return []
2424

25+
2526
class ManifestFinder(BaseFinder):
2627
def find(self, path, all=False):
2728
"""

pipeline/storage.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import unicode_literals
22

33
import gzip
4-
import tempfile
54

65
from io import BytesIO
76

@@ -10,8 +9,6 @@
109

1110
from django.core.files.base import File
1211

13-
from pipeline.conf import settings
14-
1512

1613
class PipelineMixin(object):
1714
packing = True

tests/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import os
2-
local_path = lambda path: os.path.join(os.path.dirname(__file__), path)
2+
3+
4+
def local_path(path):
5+
return os.path.join(os.path.dirname(__file__), path)
36

47
DATABASES = {
58
'default': {

tests/tests/test_glob.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
from pipeline import glob
1111

12-
local_path = lambda path: os.path.join(os.path.dirname(__file__), path)
12+
13+
def local_path(path):
14+
return os.path.join(os.path.dirname(__file__), path)
1315

1416

1517
class GlobTest(TestCase):

0 commit comments

Comments
 (0)