diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-05 23:13:58 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-05 23:13:58 (GMT) |
commit | 05d1189566c4caa3b2c9b474159a04d0d61364c3 (patch) | |
tree | 65f0ddc12171fe7c244151dec8c4962c9c1887b2 /Objects | |
parent | f48323e3b3336eeb787d94718464e527612ed0fb (diff) | |
download | cpython-05d1189566c4caa3b2c9b474159a04d0d61364c3.zip cpython-05d1189566c4caa3b2c9b474159a04d0d61364c3.tar.gz cpython-05d1189566c4caa3b2c9b474159a04d0d61364c3.tar.bz2 |
Fix post-condition in unicode_repr(): check the result, not the input
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ unicode_repr(PyObject *unicode) } } /* Closing quote already added at the beginning */ - assert(_PyUnicode_CheckConsistency(unicode, 1)); + assert(_PyUnicode_CheckConsistency(repr, 1)); return repr; } |