diff options
| author | R David Murray <rdmurray@bitdance.com> | 2015-12-04 22:54:38 -0500 |
|---|---|---|
| committer | R David Murray <rdmurray@bitdance.com> | 2015-12-04 22:54:38 -0500 |
| commit | ced699b4c7e79e0a53e3ca7f2d789b761d4a9e76 (patch) | |
| tree | 6d129c7f79a8dccd49a65adbb57b45f075b3d98b /Lib/compileall.py | |
| parent | afdd51343cafbc02443fa6f7a2166af951a67c64 (diff) | |
| download | cpython-git-ced699b4c7e79e0a53e3ca7f2d789b761d4a9e76.tar.gz | |
#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 'Lib/compileall.py')
| -rw-r--r-- | Lib/compileall.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/compileall.py b/Lib/compileall.py index d957ee5357..8e1569c58e 100644 --- a/Lib/compileall.py +++ b/Lib/compileall.py @@ -196,9 +196,6 @@ def main(): compile_dests = args.compile_dest - if (args.ddir and (len(compile_dests) != 1 - or not os.path.isdir(compile_dests[0]))): - parser.exit('-d destdir requires exactly one directory argument') if args.rx: import re args.rx = re.compile(args.rx) |
