diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-27 00:09:50 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-27 00:09:50 (GMT) |
commit | d3a5f53a27be821cfdff869fd8ad93a060497e8c (patch) | |
tree | ee22ad4c843e07d067847ffc25cddccb0c09033b /Parser/asdl_c.py | |
parent | 8d0701daf11e9f93db0b91adad4fc9911752160f (diff) | |
download | cpython-d3a5f53a27be821cfdff869fd8ad93a060497e8c.zip cpython-d3a5f53a27be821cfdff869fd8ad93a060497e8c.tar.gz cpython-d3a5f53a27be821cfdff869fd8ad93a060497e8c.tar.bz2 |
Avoid reinitializing the types twice.
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-x | Parser/asdl_c.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index a853f5e..e1dd463 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -446,6 +446,7 @@ static PyObject* ast2obj_bool(bool b) self.emit("static int init_types(void)",0) self.emit("{", 0) self.emit("if (initialized) return 1;", 1) + self.emit("initialized = 1;", 1) for dfn in mod.dfns: self.visit(dfn) self.emit("return 1;", 0); |