summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-06-07 19:57:46 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-06-07 19:57:46 (GMT)
commit7eeb5b5e5017cf1354b084327b49390044946069 (patch)
tree6105fb6e6fa76d1d0e3c4d6e987b91aa623f7fc3 /Objects
parentfa68a6188a16562c1b4ba8cf879ce49decba5546 (diff)
downloadcpython-7eeb5b5e5017cf1354b084327b49390044946069.zip
cpython-7eeb5b5e5017cf1354b084327b49390044946069.tar.gz
cpython-7eeb5b5e5017cf1354b084327b49390044946069.tar.bz2
Issue #8848: U / U# formats of Py_BuildValue() are just alias to s / s#
Diffstat (limited to 'Objects')
-rw-r--r--Objects/exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 8200d4d..3d5b1ea 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -1510,7 +1510,7 @@ PyUnicodeEncodeError_Create(
const char *encoding, const Py_UNICODE *object, Py_ssize_t length,
Py_ssize_t start, Py_ssize_t end, const char *reason)
{
- return PyObject_CallFunction(PyExc_UnicodeEncodeError, "Uu#nnU",
+ return PyObject_CallFunction(PyExc_UnicodeEncodeError, "su#nns",
encoding, object, length, start, end, reason);
}
@@ -1625,7 +1625,7 @@ PyUnicodeDecodeError_Create(
assert(length < INT_MAX);
assert(start < INT_MAX);
assert(end < INT_MAX);
- return PyObject_CallFunction(PyExc_UnicodeDecodeError, "Uy#nnU",
+ return PyObject_CallFunction(PyExc_UnicodeDecodeError, "sy#nns",
encoding, object, length, start, end, reason);
}