summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index d4c0be7..c2b04cc 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -2029,8 +2029,7 @@ whichmodule(PyObject *global, PyObject *dotted_path)
}
/* If no module is found, use __main__. */
- module_name = &_Py_ID(__main__);
- return Py_NewRef(module_name);
+ return &_Py_ID(__main__);
}
/* fast_save_enter() and fast_save_leave() are guards against recursive