summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2005-12-18 15:44:21 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2005-12-18 15:44:21 (GMT)
commit93d69a7948d3ecebcfd8fd98d0909af56ef4993f (patch)
treeffd758b81b5f4be00a5fe542f64c5054a7d10f7c /Python/compile.c
parent0149e3a0903be8d47d1d6da0fd9ff3767c517085 (diff)
downloadcpython-93d69a7948d3ecebcfd8fd98d0909af56ef4993f.zip
cpython-93d69a7948d3ecebcfd8fd98d0909af56ef4993f.tar.gz
cpython-93d69a7948d3ecebcfd8fd98d0909af56ef4993f.tar.bz2
fixed compilation with an ordinary C89 compiler
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 60b4933..3ada52b 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -296,8 +296,7 @@ PyCodeObject *
PyNode_Compile(struct _node *n, const char *filename)
{
PyCodeObject *co = NULL;
- PyArena *arena;
- arena = PyArena_New();
+ PyArena *arena = PyArena_New();
mod_ty mod = PyAST_FromNode(n, NULL, filename, arena);
if (mod)
co = PyAST_Compile(mod, filename, NULL, arena);