Skip to content

Commit 170b253

Browse files
Add more debug prints.
1 parent 50be3cc commit 170b253

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Python/_warnings.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,10 +1457,14 @@ PyErr_WarnExplicitObject(PyObject *category, PyObject *message,
14571457
if (tstate == NULL) {
14581458
return -1;
14591459
}
1460+
if (filename)
1461+
PySys_FormatStdout("filename = %R\n", filename);
1462+
else
1463+
PySys_FormatStdout("filename = NULL\n");
14601464
if (module)
14611465
PySys_FormatStdout("module = %R\n", module);
1462-
// else
1463-
// PySys_FormatStdout("module = NULL\n");
1466+
else
1467+
PySys_FormatStdout("module = NULL\n");
14641468

14651469
warnings_lock(tstate->interp);
14661470
res = warn_explicit(tstate, category, message, filename, lineno,

0 commit comments

Comments
 (0)