summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-22 18:25:06 (GMT)
committerGitHub <noreply@github.com>2023-08-22 18:25:06 (GMT)
commitc1c9cd61da1c5b6318da9f7055d45ec82a9949ba (patch)
tree4157638c91ba5c9624e7c5d092b5fe74820b7b7b /Modules
parent615f6e946db6d7eae66b8de9a75a6c58a84516a6 (diff)
downloadcpython-c1c9cd61da1c5b6318da9f7055d45ec82a9949ba.zip
cpython-c1c9cd61da1c5b6318da9f7055d45ec82a9949ba.tar.gz
cpython-c1c9cd61da1c5b6318da9f7055d45ec82a9949ba.tar.bz2
gh-89745: Remove commented code in getpath.c (#108307)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/getpath.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/Modules/getpath.c b/Modules/getpath.c
index 76e3c7e..fb1656a 100644
--- a/Modules/getpath.c
+++ b/Modules/getpath.c
@@ -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);
@@ -949,4 +932,3 @@ _PyConfig_InitPathConfig(PyConfig *config, int compute_path_config)
return _PyStatus_OK();
}
-