summaryrefslogtreecommitdiffstats
path: root/Objects/exceptions.c
diff options
context:
space:
mode:
authorMax Bernstein <tekknolagi@users.noreply.github.com>2019-04-02 08:16:22 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-04-02 08:16:22 (GMT)
commite6a0e804bfad4a5ef03c04d0e3d9a94472966f9a (patch)
tree96de46125647e4720fd9a075c3f2614460275ba0 /Objects/exceptions.c
parentb00479d42aaaed589d8b374bf5e5c6f443b0b499 (diff)
downloadcpython-e6a0e804bfad4a5ef03c04d0e3d9a94472966f9a.zip
cpython-e6a0e804bfad4a5ef03c04d0e3d9a94472966f9a.tar.gz
cpython-e6a0e804bfad4a5ef03c04d0e3d9a94472966f9a.tar.bz2
fix confusing argument name in unicodeobject.c (GH-12653)
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r--Objects/exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index ad2a54a..b40ecb7 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -1765,9 +1765,9 @@ PyUnicodeDecodeError_GetEnd(PyObject *exc, Py_ssize_t *end)
int
-PyUnicodeTranslateError_GetEnd(PyObject *exc, Py_ssize_t *start)
+PyUnicodeTranslateError_GetEnd(PyObject *exc, Py_ssize_t *end)
{
- return PyUnicodeEncodeError_GetEnd(exc, start);
+ return PyUnicodeEncodeError_GetEnd(exc, end);
}