Skip to content

Commit c1c9cd6

Browse files
authored
gh-89745: Remove commented code in getpath.c (#108307)
1 parent 615f6e9 commit c1c9cd6

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Modules/getpath.c

-18
Original file line numberDiff line numberDiff line change
@@ -922,23 +922,6 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)
922922
}
923923
Py_DECREF(r);
924924

925-
#if 0
926-
PyObject *it = PyObject_GetIter(configDict);
927-
for (PyObject *k = PyIter_Next(it); k; k = PyIter_Next(it)) {
928-
if (!strcmp("__builtins__", PyUnicode_AsUTF8(k))) {
929-
Py_DECREF(k);
930-
continue;
931-
}
932-
fprintf(stderr, "%s = ", PyUnicode_AsUTF8(k));
933-
PyObject *o = PyDict_GetItem(configDict, k);
934-
o = PyObject_Repr(o);
935-
fprintf(stderr, "%s\n", PyUnicode_AsUTF8(o));
936-
Py_DECREF(o);
937-
Py_DECREF(k);
938-
}
939-
Py_DECREF(it);
940-
#endif
941-
942925
if (_PyConfig_FromDict(config, configDict) < 0) {
943926
_PyErr_WriteUnraisableMsg("reading getpath results", NULL);
944927
Py_DECREF(dict);
@@ -949,4 +932,3 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)
949932

950933
return _PyStatus_OK();
951934
}
952-

0 commit comments

Comments
 (0)