summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-26 20:39:54 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-11-26 20:39:54 (GMT)
commit3663b586644e6d2af1d682f0703ba0d1a80d53d7 (patch)
tree49043f8346620dcd224bc3bee2067b10438b3541 /Python
parent12abc86903d7393c9e8d6c9a3dbc8100dbdee02b (diff)
downloadcpython-3663b586644e6d2af1d682f0703ba0d1a80d53d7.zip
cpython-3663b586644e6d2af1d682f0703ba0d1a80d53d7.tar.gz
cpython-3663b586644e6d2af1d682f0703ba0d1a80d53d7.tar.bz2
correct assertion
Diffstat (limited to 'Python')
-rw-r--r--Python/codecs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/codecs.c b/Python/codecs.c
index ff9d1de..a0a5403 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -1019,7 +1019,7 @@ PyObject *PyCodec_NameReplaceErrors(PyObject *exc)
*outp++ = Py_hexdigits[c&0xf];
}
- assert(outp == start + ressize);
+ assert(outp == PyUnicode_1BYTE_DATA(res) + ressize);
assert(_PyUnicode_CheckConsistency(res, 1));
restuple = Py_BuildValue("(Nn)", res, end);
Py_DECREF(object);