From 05d1189566c4caa3b2c9b474159a04d0d61364c3 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 6 Oct 2011 01:13:58 +0200 Subject: [PATCH] Fix post-condition in unicode_repr(): check the result, not the input --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3