mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Removed redundant casts to char *.
Corresponding functions now accept `const char *` (issue #1772673).
This commit is contained in:
parent
131caba074
commit
20b39b27d9
10 changed files with 17 additions and 18 deletions
|
|
@ -362,7 +362,7 @@ importmap(const char *modname, const char *symbol,
|
|||
if (mod == NULL)
|
||||
return -1;
|
||||
|
||||
o = PyObject_GetAttrString(mod, (char*)symbol);
|
||||
o = PyObject_GetAttrString(mod, symbol);
|
||||
if (o == NULL)
|
||||
goto errorexit;
|
||||
else if (!PyCapsule_IsValid(o, PyMultibyteCodec_CAPSULE_NAME)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue