Thanks to visit codestin.com Credit goes to github.com
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 9587286 commit 21fcd0cCopy full SHA for 21fcd0c
1 file changed
Python/import.c
@@ -625,7 +625,7 @@ _PyImport_FixupBuiltin(PyObject *mod, char *name)
625
{
626
int res;
627
PyObject *nameobj;
628
- nameobj = PyUnicode_FromString(name);
+ nameobj = PyUnicode_InternFromString(name);
629
if (nameobj == NULL)
630
return -1;
631
res = _PyImport_FixupExtensionObject(mod, nameobj, nameobj);
@@ -681,7 +681,7 @@ PyObject *
681
_PyImport_FindBuiltin(const char *name)
682
683
PyObject *res, *nameobj;
684
685
686
return NULL;
687
res = _PyImport_FindExtensionObject(nameobj, nameobj);
0 commit comments