aboutsummaryrefslogtreecommitdiffstats
path: root/common.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-02-21 18:32:24 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-02-21 18:32:24 -0500
commit6e2b99a0870e467e35c8b4b95aeb1e665dded413 (patch)
tree1e4b4d000c6b53b93a35b5446dc774d4799c987c /common.py
parent9bcbb4048cd82ea11ed469731eae95d808b99449 (diff)
Many bugfixes motivated by some end-to-end testing.
Diffstat (limited to 'common.py')
-rw-r--r--common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.py b/common.py
index 6d1db97..d080e1a 100644
--- a/common.py
+++ b/common.py
@@ -105,7 +105,7 @@ def recordtype(typename, field_names, default=0):
105 namespace = {} 105 namespace = {}
106 try: 106 try:
107 exec template in namespace 107 exec template in namespace
108 except SyntaxError, e: 108 except SyntaxError as e:
109 raise SyntaxError(e.message + ':\n' + template) 109 raise SyntaxError(e.message + ':\n' + template)
110 cls = namespace[typename] 110 cls = namespace[typename]
111 111