Commit e37239c0 by Timothée Peignier

pep8 fix

parent 39ec87ee
......@@ -24,6 +24,7 @@ class Compiler(object):
def compile(self, paths, force=False):
import multiprocessing
from concurrent import futures
def _compile(input_path):
for compiler in self.compilers:
compiler = compiler(verbose=self.verbose, storage=self.storage)
......@@ -40,6 +41,7 @@ class Compiler(object):
return output_path
else:
return input_path
with futures.ThreadPoolExecutor(max_workers=multiprocessing.cpu_count()) as executor:
return list(executor.map(_compile, paths))
......
......@@ -5,6 +5,7 @@ from django.utils._os import safe_join
from pipeline.conf import settings
class PipelineFinder(BaseFinder):
def find(self, path, all=False):
"""
......
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