summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index d32562e..568f45a 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -232,6 +232,11 @@ list_builtin_module_names()
DECREF(list);
list = NULL;
}
+ if (list) {
+ object *v = listtuple(list);
+ DECREF(list);
+ list = v;
+ }
return list;
}