summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>2021-09-21 23:09:00 (GMT)
committerGitHub <noreply@github.com>2021-09-21 23:09:00 (GMT)
commit8f943ca25732d548cf9f0b0393ba8d582fb93e29 (patch)
tree95cffeb379a4ded4c1c753bdaf29ea79916e04d2 /Objects
parenta0073471002bed0169fb806703e26880bbcceb73 (diff)
downloadcpython-8f943ca25732d548cf9f0b0393ba8d582fb93e29.zip
cpython-8f943ca25732d548cf9f0b0393ba8d582fb93e29.tar.gz
cpython-8f943ca25732d548cf9f0b0393ba8d582fb93e29.tar.bz2
[codemod] Fix non-matching bracket pairs (GH-28473)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
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 9b0b869..f5919cf 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -10747,7 +10747,7 @@ replace(PyObject *self, PyObject *str1,
release1 = 1;
}
/* new_size = PyUnicode_GET_LENGTH(self) + n * (PyUnicode_GET_LENGTH(str2) -
- PyUnicode_GET_LENGTH(str1))); */
+ PyUnicode_GET_LENGTH(str1)); */
if (len1 < len2 && len2 - len1 > (PY_SSIZE_T_MAX - slen) / n) {
PyErr_SetString(PyExc_OverflowError,
"replace string is too long");