diff options
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 86c74ba..b7b499e 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -511,15 +511,9 @@ PyDict_SetItem(register PyObject *op, PyObject *key, PyObject *value) } mp = (dictobject *)op; if (PyString_CheckExact(key)) { - if (((PyStringObject *)key)->ob_sinterned != NULL) { - key = ((PyStringObject *)key)->ob_sinterned; - hash = ((PyStringObject *)key)->ob_shash; - } - else { - hash = ((PyStringObject *)key)->ob_shash; - if (hash == -1) - hash = PyObject_Hash(key); - } + hash = ((PyStringObject *)key)->ob_shash; + if (hash == -1) + hash = PyObject_Hash(key); } else { hash = PyObject_Hash(key); |