mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
:)
This commit is contained in:
parent
4d9f06885c
commit
7e072792a2
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ intern_constants(PyObject *tuple, int *modified)
|
|||
PyInterpreterState *interp = _PyInterpreterState_GET();
|
||||
for (Py_ssize_t i = PyTuple_GET_SIZE(tuple); --i >= 0; ) {
|
||||
PyObject *v = PyTuple_GET_ITEM(tuple, i);
|
||||
if (PyUnicode_CheckExact(v) && PyUnicode_GET_LENGTH(v) > 1) {
|
||||
if (PyUnicode_CheckExact(v)) {
|
||||
if (PyUnicode_CHECK_INTERNED(v) != 0) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue