Skip to content

Commit 7f65635

Browse files
committed
Update comments
1 parent d43b1b5 commit 7f65635

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎Objects/unicodeobject.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10487,7 +10487,7 @@ _PyUnicode_JoinArray(PyObject *separator, PyObject *const *items, Py_ssize_t seq
1048710487
else {
1048810488
/* Set up sep and seplen */
1048910489
if (separator == NULL) {
10490-
/* fall back to a blank space separator */
10490+
/* fall back to a blank space separator (immortal object) */
1049110491
sep = get_latin1_char(' ');
1049210492
seplen = 1;
1049310493
maxchar = 32;
@@ -10503,8 +10503,6 @@ _PyUnicode_JoinArray(PyObject *separator, PyObject *const *items, Py_ssize_t seq
1050310503
sep = separator;
1050410504
seplen = PyUnicode_GET_LENGTH(separator);
1050510505
maxchar = PyUnicode_MAX_CHAR_VALUE(separator);
10506-
/* inc refcount to keep this code path symmetric with the
10507-
above case of a blank separator */
1050810506
Py_INCREF(sep);
1050910507
}
1051010508
last_obj = sep;

0 commit comments

Comments
 (0)