summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 85fdc7e..3df85ff 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -634,8 +634,7 @@ _PySys_Init(void)
Py_INCREF(warnoptions);
}
if (warnoptions != NULL) {
- PyDict_SetItemString(sysdict, "warnoptions", v = warnoptions);
- Py_DECREF(v);
+ PyDict_SetItemString(sysdict, "warnoptions", warnoptions);
}
if (PyErr_Occurred())