mirror of
https://github.com/python/cpython.git
synced 2024-11-27 11:55:13 +08:00
Fix post-condition in unicode_repr(): check the result, not the input
This commit is contained in:
parent
f48323e3b3
commit
05d1189566
@ -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…
Reference in New Issue
Block a user