Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1a0ef713
Commit
1a0ef713
authored
Nov 05, 2016
by
Martin Panter
Browse files
Options
Browse Files
Download
Plain Diff
Issue #28485: Merge single-threading fix from 3.5 into 3.6
parents
b1c6b40f
e69d8344
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Lib/compileall.py
Lib/compileall.py
+3
-3
Misc/NEWS
Misc/NEWS
+4
-0
No files found.
Lib/compileall.py
View file @
1a0ef713
...
...
@@ -68,13 +68,13 @@ def compile_dir(dir, maxlevels=10, ddir=None, force=False, rx=None,
optimize: optimization level or -1 for level of the interpreter
workers: maximum number of parallel workers
"""
if
workers
is
not
None
and
workers
<
0
:
raise
ValueError
(
'workers must be greater or equal to 0'
)
files
=
_walk_dir
(
dir
,
quiet
=
quiet
,
maxlevels
=
maxlevels
,
ddir
=
ddir
)
success
=
True
if
workers
is
not
None
and
workers
!=
1
and
ProcessPoolExecutor
is
not
None
:
if
workers
<
0
:
raise
ValueError
(
'workers must be greater or equal to 0'
)
workers
=
workers
or
None
with
ProcessPoolExecutor
(
max_workers
=
workers
)
as
executor
:
results
=
executor
.
map
(
partial
(
compile_file
,
...
...
Misc/NEWS
View file @
1a0ef713
...
...
@@ -573,6 +573,10 @@ Core and Builtins
Library
-------
-
Issue
#
28485
:
Always
raise
ValueError
for
negative
compileall
.
compile_dir
(
workers
=...)
parameter
,
even
when
multithreading
is
unavailable
.
-
Issue
#
28037
:
Use
sqlite3_get_autocommit
()
instead
of
setting
Connection
->
inTransaction
manually
.
...
...
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