mirror of
https://github.com/python/cpython.git
synced 2025-10-12 18:02:39 +00:00
gh-89745: Remove commented code in getpath.c (#108307)
This commit is contained in:
parent
615f6e946d
commit
c1c9cd61da
1 changed files with 0 additions and 18 deletions
|
@ -922,23 +922,6 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)
|
||||||
}
|
}
|
||||||
Py_DECREF(r);
|
Py_DECREF(r);
|
||||||
|
|
||||||
#if 0
|
|
||||||
PyObject *it = PyObject_GetIter(configDict);
|
|
||||||
for (PyObject *k = PyIter_Next(it); k; k = PyIter_Next(it)) {
|
|
||||||
if (!strcmp("__builtins__", PyUnicode_AsUTF8(k))) {
|
|
||||||
Py_DECREF(k);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
fprintf(stderr, "%s = ", PyUnicode_AsUTF8(k));
|
|
||||||
PyObject *o = PyDict_GetItem(configDict, k);
|
|
||||||
o = PyObject_Repr(o);
|
|
||||||
fprintf(stderr, "%s\n", PyUnicode_AsUTF8(o));
|
|
||||||
Py_DECREF(o);
|
|
||||||
Py_DECREF(k);
|
|
||||||
}
|
|
||||||
Py_DECREF(it);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (_PyConfig_FromDict(config, configDict) < 0) {
|
if (_PyConfig_FromDict(config, configDict) < 0) {
|
||||||
_PyErr_WriteUnraisableMsg("reading getpath results", NULL);
|
_PyErr_WriteUnraisableMsg("reading getpath results", NULL);
|
||||||
Py_DECREF(dict);
|
Py_DECREF(dict);
|
||||||
|
@ -949,4 +932,3 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)
|
||||||
|
|
||||||
return _PyStatus_OK();
|
return _PyStatus_OK();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue