mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix post-condition in unicode_repr(): check the result, not the input
This commit is contained in:
parent
f48323e3b3
commit
05d1189566
1 changed files with 1 additions and 1 deletions
|
@ -11589,7 +11589,7 @@ unicode_repr(PyObject *unicode)
|
|||
}
|
||||
}
|
||||
/* Closing quote already added at the beginning */
|
||||
assert(_PyUnicode_CheckConsistency(unicode, 1));
|
||||
assert(_PyUnicode_CheckConsistency(repr, 1));
|
||||
return repr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue