mirror of
https://github.com/python/cpython.git
synced 2025-11-17 09:30:10 +00:00
Merged revisions 74163 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74163 | tarek.ziade | 2009-07-22 10:55:19 +0200 (Wed, 22 Jul 2009) | 1 line Issue #6545: Removed assert statements in distutils.Extension, so the behavior is similar when used with -O ........
This commit is contained in:
parent
93f2cd2e3a
commit
2f19bb1447
2 changed files with 8 additions and 4 deletions
|
|
@ -103,10 +103,11 @@ class Extension:
|
||||||
optional=None,
|
optional=None,
|
||||||
**kw # To catch unknown keywords
|
**kw # To catch unknown keywords
|
||||||
):
|
):
|
||||||
assert isinstance(name, str), "'name' must be a string"
|
if not isinstance(name, str):
|
||||||
assert (isinstance(sources, list) and
|
raise AssertionError("'name' must be a string")
|
||||||
all(isinstance(v, str) for v in sources)), \
|
if not (isinstance(sources, list) and
|
||||||
"'sources' must be a list of strings"
|
all(isinstance(v, str) for v in sources)):
|
||||||
|
raise AssertionError("'sources' must be a list of strings")
|
||||||
|
|
||||||
self.name = name
|
self.name = name
|
||||||
self.sources = sources
|
self.sources = sources
|
||||||
|
|
|
||||||
|
|
@ -940,6 +940,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #6545: Removed assert statements in distutils.Extension, so the
|
||||||
|
behavior is similar when used with -O.
|
||||||
|
|
||||||
- unittest has been split up into a package. All old names should still work.
|
- unittest has been split up into a package. All old names should still work.
|
||||||
|
|
||||||
- Issue #6466: now distutils.cygwinccompiler and distutils.emxccompiler
|
- Issue #6466: now distutils.cygwinccompiler and distutils.emxccompiler
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue