From: Victor Stinner Date: Wed, 5 Oct 2011 23:13:58 +0000 (+0200) Subject: Fix post-condition in unicode_repr(): check the result, not the input X-Git-Tag: v3.3.0a1~1299 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05d1189566c4caa3b2c9b474159a04d0d61364c3;p=thirdparty%2FPython%2Fcpython.git Fix post-condition in unicode_repr(): check the result, not the input --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index a0d3056b7f7a..98da9b304de2 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; }