Commit e37239c0 by Timothée Peignier

pep8 fix

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