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

This commit is contained in:
Victor Stinner 2011-10-06 01:13:58 +02:00
parent f48323e3b3
commit 05d1189566

View File

@ -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;
}