summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/_warnings.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c
index 445ff6b..92d6547 100644
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -905,6 +905,7 @@ _PyWarnings_Init(void)
_default_action = PyString_FromString("default");
if (_default_action == NULL)
return;
+ Py_INCREF(_default_action);
if (PyModule_AddObject(m, "default_action", _default_action) < 0)
return;
}