diff Python/Python-ast.c @ 36665:58a8451ff795 legacy-trunk

Avoid reinitializing the types twice.
author Martin v. Löwis <martin@v.loewis.de>
date Mon, 27 Feb 2006 00:09:50 +0000
parents 7bfbfb2ef4e2
children 6165927431d6
line wrap: on
line diff
--- a/Python/Python-ast.c	Sun Feb 26 23:40:20 2006 +0000
+++ b/Python/Python-ast.c	Mon Feb 27 00:09:50 2006 +0000
@@ -392,6 +392,7 @@
 static int init_types(void)
 {
         if (initialized) return 1;
+        initialized = 1;
         mod_type = make_type("mod", &PyBaseObject_Type, NULL, 0);
         Module_type = make_type("Module", mod_type, Module_fields, 1);
         Interactive_type = make_type("Interactive", mod_type,