diff Python/import.c @ 86999:01c4a0af73cf

Issue #19512, #19515: remove shared identifiers, move identifiers where they are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file.
author Victor Stinner <victor.stinner@gmail.com>
date Thu, 07 Nov 2013 23:07:29 +0100
parents 3f9f2cfae53b
children 8e40d07d3cd2
line wrap: on
line diff
--- a/Python/import.c	Thu Nov 07 22:22:39 2013 +0100
+++ b/Python/import.c	Thu Nov 07 23:07:29 2013 +0100
@@ -310,7 +310,7 @@
 
     /* XXX Perhaps these precautions are obsolete. Who knows? */
 
-    value = _PyDict_GetItemId(modules, &_PyId_builtins);
+    value = PyDict_GetItemString(modules, "builtins");
     if (value != NULL && PyModule_Check(value)) {
         dict = PyModule_GetDict(value);
         if (Py_VerboseFlag)