mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
assertion message was dropped
This commit is contained in:
parent
fe327b97d2
commit
8df921b46b
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Extension:
|
|||
optional=None,
|
||||
**kw # To catch unknown keywords
|
||||
):
|
||||
assert isinstance(name, str)
|
||||
assert isinstance(name, str), "'name' must be a string"
|
||||
assert (isinstance(sources, list) and
|
||||
all(isinstance(v, str) for v in sources)), \
|
||||
"'sources' must be a list of strings"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue