summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-12-05 03:54:38 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-12-05 03:54:38 (GMT)
commitced699b4c7e79e0a53e3ca7f2d789b761d4a9e76 (patch)
tree6d129c7f79a8dccd49a65adbb57b45f075b3d98b /Misc
parentafdd51343cafbc02443fa6f7a2166af951a67c64 (diff)
downloadcpython-ced699b4c7e79e0a53e3ca7f2d789b761d4a9e76.zip
cpython-ced699b4c7e79e0a53e3ca7f2d789b761d4a9e76.tar.gz
cpython-ced699b4c7e79e0a53e3ca7f2d789b761d4a9e76.tar.bz2
#24903: Remove misleading error message to fix regression.
Before the argparse conversion, compileall would (sometimes) accept multiple paths when -d was specified. Afterward, it does not. The corresponding check in the original code claimed to prevent multiple *directories* from being specified...but it didn't really work even to do that. So this patch fixes the regression by invoking the consenting adults rule: if you specify a combination of arguments to compileall that produces files with inconsistent destdirs (which you could do before), it is on you. Patch by Jake Garver.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS4
2 files changed, 5 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 0f64ef0..6130568 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -470,6 +470,7 @@ Raymund Galvin
Nitin Ganatra
Fred Gansevles
Lars Marius Garshol
+Jake Garver
Dan Gass
Andrew Gaul
Matthieu Gautier
diff --git a/Misc/NEWS b/Misc/NEWS
index 0d4977f..8c727ff 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -115,6 +115,10 @@ Core and Builtins
Library
-------
+- Issue #24903: Fix regression in number of arguments compileall accepts when
+ '-d' is specified. The check on the number of arguments has been dropped
+ completely as it never worked correctly anyway.
+
- Issue #25764: In the subprocess module, preserve any exception caused by
fork() failure when preexec_fn is used.