Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-89745: Remove commented code in getpath.c #108307

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions Modules/getpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,23 +922,6 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)
}
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) {
_PyErr_WriteUnraisableMsg("reading getpath results", NULL);
Py_DECREF(dict);
Expand All @@ -949,4 +932,3 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)

return _PyStatus_OK();
}