summaryrefslogtreecommitdiff
path: root/6/simp.c
diff options
context:
space:
mode:
Diffstat (limited to '6/simp.c')
-rw-r--r--6/simp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/simp.c b/6/simp.c
index 415f49d..cff77ba 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -1403,7 +1403,7 @@ isexport(Node *dcl)
n = dcl->decl.name;
if (!n->name.ns && streq(n->name.name, "main"))
return 1;
- if (streq(n->name.name, "__init__"))
+ if (streq(n->name.name, "__init__") || streq(n->name.name, "__fini__"))
return 1;
return 0;
}