diff options
Diffstat (limited to 'Tools/scripts/h2py.py')
-rwxr-xr-x | Tools/scripts/h2py.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index 63e7336..f4b8306 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -130,7 +130,7 @@ def process(fp, outfp, env = {}): ok = 0 stmt = '%s = %s\n' % (name, body.strip()) try: - exec stmt in env + exec(stmt, env) except: sys.stderr.write('Skipping: %s' % stmt) else: @@ -142,7 +142,7 @@ def process(fp, outfp, env = {}): body = pytify(body) stmt = 'def %s(%s): return %s\n' % (macro, arg, body) try: - exec stmt in env + exec(stmt, env) except: sys.stderr.write('Skipping: %s' % stmt) else: |