diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-27 00:09:50 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-27 00:09:50 +0000 |
commit | 94c4364055658a1b725f997b768be0390dd8b66d (patch) | |
tree | 1ae1a1836673d035394a66daf6c329a4dc1db9f6 /Python/Python-ast.c | |
parent | 9a8df0dbcc7f445fd866becc98520d68e6bb6851 (diff) | |
download | cpython-94c4364055658a1b725f997b768be0390dd8b66d.tar.gz |
Avoid reinitializing the types twice.
Diffstat (limited to 'Python/Python-ast.c')
-rw-r--r-- | Python/Python-ast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index cf27129183..6935851df3 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -392,6 +392,7 @@ static int initialized; 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, |