summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-05 23:13:58 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-05 23:13:58 (GMT)
commit05d1189566c4caa3b2c9b474159a04d0d61364c3 (patch)
tree65f0ddc12171fe7c244151dec8c4962c9c1887b2 /Objects
parentf48323e3b3336eeb787d94718464e527612ed0fb (diff)
downloadcpython-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.c2
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;
}