Skip to content

Commit e448a20

Browse files
Update codeobject.c: - unnecessary check
1 parent db85987 commit e448a20

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Objects/codeobject.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,6 @@ intern_strings(PyObject *tuple)
198198

199199
static inline PyObject*
200200
get_interned_string(PyObject *interned_dict, PyObject *s) {
201-
if (!PyUnicode_CheckExact(s)) {
202-
return NULL;
203-
}
204-
205201
PyObject *existing = PyDict_GetItemWithError(interned_dict, s);
206202
if (existing == NULL) {
207203
if (PyErr_Occurred()) {

0 commit comments

Comments
 (0)