We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d9f068 commit 7e07279Copy full SHA for 7e07279
Objects/codeobject.c
@@ -207,7 +207,7 @@ intern_constants(PyObject *tuple, int *modified)
207
PyInterpreterState *interp = _PyInterpreterState_GET();
208
for (Py_ssize_t i = PyTuple_GET_SIZE(tuple); --i >= 0; ) {
209
PyObject *v = PyTuple_GET_ITEM(tuple, i);
210
- if (PyUnicode_CheckExact(v) && PyUnicode_GET_LENGTH(v) > 1) {
+ if (PyUnicode_CheckExact(v)) {
211
if (PyUnicode_CHECK_INTERNED(v) != 0) {
212
continue;
213
}
0 commit comments