summaryrefslogtreecommitdiff
path: root/pycparser/_ast_gen.py
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-01-19 06:20:24 +0200
committerEli Bendersky <eliben@gmail.com>2012-01-19 06:20:24 +0200
commitdfd0df314362fa7fc2b6a76363c40852112f718b (patch)
tree2736498a6a761d19d92bdd2e99ef32ab70cbaff4 /pycparser/_ast_gen.py
parent68497c24db5bb73aa5d75db43f5f837d7ca7c4b0 (diff)
downloadpycparser-dfd0df314362fa7fc2b6a76363c40852112f718b.tar.gz
fix problem in c-to-c generation of casts. Patch by Andreas Kloeckner
Diffstat (limited to 'pycparser/_ast_gen.py')
-rw-r--r--pycparser/_ast_gen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pycparser/_ast_gen.py b/pycparser/_ast_gen.py
index b3f3135..9560a25 100644
--- a/pycparser/_ast_gen.py
+++ b/pycparser/_ast_gen.py
@@ -20,7 +20,8 @@ class ASTCodeGenerator(object):
file.
"""
self.cfg_filename = cfg_filename
- self.node_cfg = [NodeCfg(name, contents) for (name, contents) in self.parse_cfgfile(cfg_filename)]
+ self.node_cfg = [NodeCfg(name, contents)
+ for (name, contents) in self.parse_cfgfile(cfg_filename)]
def generate(self, file=None):
""" Generates the code into file, an open file buffer.