Commit 05d11895 authored by Victor Stinner's avatar Victor Stinner

Fix post-condition in unicode_repr(): check the result, not the input

parent f48323e3
...@@ -11589,7 +11589,7 @@ unicode_repr(PyObject *unicode) ...@@ -11589,7 +11589,7 @@ unicode_repr(PyObject *unicode)
} }
} }
/* Closing quote already added at the beginning */ /* Closing quote already added at the beginning */
assert(_PyUnicode_CheckConsistency(unicode, 1)); assert(_PyUnicode_CheckConsistency(repr, 1));
return repr; return repr;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment