mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
Add const to error and newstring functions
This commit is contained in:
parent
36dd0d27c4
commit
067998f35e
4 changed files with 6 additions and 6 deletions
|
@ -124,7 +124,7 @@ err_set(exception)
|
|||
void
|
||||
err_setstr(exception, string)
|
||||
object *exception;
|
||||
char *string;
|
||||
const char *string;
|
||||
{
|
||||
object *value = newstringobject(string);
|
||||
err_setval(exception, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue