mirror of
https://github.com/python/cpython.git
synced 2025-12-11 03:20:01 +00:00
Don't use ANSI string literal concatenation (everything is K&R compatible).
This commit is contained in:
parent
8102c005e0
commit
bd4435abcc
1 changed files with 4 additions and 4 deletions
|
|
@ -608,8 +608,8 @@ reop_expand_escape(self, args)
|
||||||
/* 2-digit form, so it's a memory reference */
|
/* 2-digit form, so it's a memory reference */
|
||||||
if (context==CHARCLASS)
|
if (context==CHARCLASS)
|
||||||
{
|
{
|
||||||
PyErr_SetString(ReopError, "cannot reference a register "
|
PyErr_SetString(ReopError,
|
||||||
"from inside a character class");
|
"cannot reference a register from inside a character class");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
value= 10*(pattern[index ]-'0') +
|
value= 10*(pattern[index ]-'0') +
|
||||||
|
|
@ -628,8 +628,8 @@ reop_expand_escape(self, args)
|
||||||
/* Single-digit form, like \2, so it's a memory reference */
|
/* Single-digit form, like \2, so it's a memory reference */
|
||||||
if (context==CHARCLASS)
|
if (context==CHARCLASS)
|
||||||
{
|
{
|
||||||
PyErr_SetString(ReopError, "cannot reference a register "
|
PyErr_SetString(ReopError,
|
||||||
"from inside a character class");
|
"cannot reference a register from inside a character class");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return Py_BuildValue("iii", MEMORY_REFERENCE,
|
return Py_BuildValue("iii", MEMORY_REFERENCE,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue