[New-bugs-announce] [issue10719] compileall no longer warns when cli arguments name non-existent files

R. David Murray report at bugs.python.org
Thu Dec 16 16:52:01 CET 2010


New submission from R. David Murray <rdmurray at bitdance.com>:

The introduction of support for compiling individual files broke the previous behavior of compileall, where it would report that it could not turn a directory name into a file list if the named directory did not exist.

A fix would be to reverse the test used to determine whether or not to call compile_file: instead of calling it if the name is not a directory, we should call it if the name is a file, and pass everything else to compile_dir.  This would restore the previous behaviour.

Note that compileall considers not finding a named file/directory as successful compilation, so this is a low priority bug.

----------
keywords: easy
messages: 124136
nosy: r.david.murray
priority: low
severity: normal
stage: unit test needed
status: open
title: compileall no longer warns when cli arguments name non-existent files
type: behavior
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10719>
_______________________________________


More information about the New-bugs-announce mailing list