Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-pipeline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-pipeline
Commits
e37239c0
Commit
e37239c0
authored
Nov 26, 2013
by
Timothée Peignier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pep8 fix
parent
39ec87ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
pipeline/compilers/__init__.py
+2
-0
pipeline/finders.py
+1
-0
No files found.
pipeline/compilers/__init__.py
View file @
e37239c0
...
...
@@ -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
))
...
...
pipeline/finders.py
View file @
e37239c0
...
...
@@ -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
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment