mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
Issue #16847: Fixed improper use of _PyUnicode_CheckConsistency() in
non-pydebug builds. Several extension modules now compile cleanly when assert()s are enabled in standard builds (-DDEBUG flag).
This commit is contained in:
parent
6f84659e5e
commit
f402e922f3
6 changed files with 14 additions and 0 deletions
|
@ -246,7 +246,9 @@ ascii_escape_unicode(PyObject *pystr)
|
|||
}
|
||||
}
|
||||
output[chars++] = '"';
|
||||
#ifdef Py_DEBUG
|
||||
assert(_PyUnicode_CheckConsistency(rval, 1));
|
||||
#endif
|
||||
return rval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue