diff Python/import.c @ 86981:3f9f2cfae53b

Issue #19512: Use the new _PyId_builtins identifier
author Victor Stinner <victor.stinner@gmail.com>
date Thu, 07 Nov 2013 00:43:05 +0100
parents 3055e61f1e66
children 01c4a0af73cf
line wrap: on
line diff
--- a/Python/import.c	Thu Nov 07 00:46:04 2013 +0100
+++ b/Python/import.c	Thu Nov 07 00:43:05 2013 +0100
@@ -310,7 +310,7 @@
 
     /* XXX Perhaps these precautions are obsolete. Who knows? */
 
-    value = PyDict_GetItemString(modules, "builtins");
+    value = _PyDict_GetItemId(modules, &_PyId_builtins);
     if (value != NULL && PyModule_Check(value)) {
         dict = PyModule_GetDict(value);
         if (Py_VerboseFlag)