Commit 59969679 by Timothée Peignier

Cleanup code.

parent c83615a0
...@@ -22,6 +22,7 @@ class PipelineFinder(BaseStorageFinder): ...@@ -22,6 +22,7 @@ class PipelineFinder(BaseStorageFinder):
else: else:
return [] return []
class ManifestFinder(BaseFinder): class ManifestFinder(BaseFinder):
def find(self, path, all=False): def find(self, path, all=False):
""" """
......
from __future__ import unicode_literals from __future__ import unicode_literals
import gzip import gzip
import tempfile
from io import BytesIO from io import BytesIO
...@@ -10,8 +9,6 @@ from django.contrib.staticfiles.utils import matches_patterns ...@@ -10,8 +9,6 @@ from django.contrib.staticfiles.utils import matches_patterns
from django.core.files.base import File from django.core.files.base import File
from pipeline.conf import settings
class PipelineMixin(object): class PipelineMixin(object):
packing = True packing = True
......
import os import os
local_path = lambda path: os.path.join(os.path.dirname(__file__), path)
def local_path(path):
return os.path.join(os.path.dirname(__file__), path)
DATABASES = { DATABASES = {
'default': { 'default': {
......
...@@ -9,7 +9,9 @@ from django.test import TestCase ...@@ -9,7 +9,9 @@ from django.test import TestCase
from pipeline import glob from pipeline import glob
local_path = lambda path: os.path.join(os.path.dirname(__file__), path)
def local_path(path):
return os.path.join(os.path.dirname(__file__), path)
class GlobTest(TestCase): class GlobTest(TestCase):
......
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