commit | 05d1189566c4caa3b2c9b474159a04d0d61364c3 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Oct 06 01:13:58 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Oct 06 01:13:58 2011 +0200 |
tree | 65f0ddc12171fe7c244151dec8c4962c9c1887b2 | |
parent | f48323e3b3336eeb787d94718464e527612ed0fb [diff] |
Fix post-condition in unicode_repr(): check the result, not the input
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index a0d3056..98da9b3 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -11589,7 +11589,7 @@ } } /* Closing quote already added at the beginning */ - assert(_PyUnicode_CheckConsistency(unicode, 1)); + assert(_PyUnicode_CheckConsistency(repr, 1)); return repr; }