[Python-checkins] fix confusing argument name in unicodeobject.c (GH-12653)

Miss Islington (bot) webhook-mailer at python.org
Tue Apr 2 04:16:34 EDT 2019


https://github.com/python/cpython/commit/e6a0e804bfad4a5ef03c04d0e3d9a94472966f9a
commit: e6a0e804bfad4a5ef03c04d0e3d9a94472966f9a
branch: master
author: Max Bernstein <tekknolagi at users.noreply.github.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-04-02T01:16:22-07:00
summary:

fix confusing argument name in unicodeobject.c (GH-12653)

files:
M Objects/exceptions.c

diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index ad2a54a2b6b0..b40ecb78d456 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);
 }
 
 



More information about the Python-checkins mailing list