mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Changed 'object_filenames()' to raise exception instead of silently carrying
on if it sees a filename with unknown extension.
This commit is contained in:
parent
370248d705
commit
9aa668b03a
1 changed files with 3 additions and 1 deletions
|
@ -671,7 +671,9 @@ class CCompiler:
|
|||
for src_name in source_filenames:
|
||||
(base, ext) = os.path.splitext (src_name)
|
||||
if ext not in self.src_extensions:
|
||||
continue
|
||||
raise UnknownFileError, \
|
||||
"unknown file type '%s' (from '%s')" % \
|
||||
(ext, src_name)
|
||||
if strip_dir:
|
||||
base = os.path.basename (base)
|
||||
obj_names.append (os.path.join (output_dir,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue