diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-02-21 18:32:24 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-02-21 18:32:24 -0500 |
commit | 6e2b99a0870e467e35c8b4b95aeb1e665dded413 (patch) | |
tree | 1e4b4d000c6b53b93a35b5446dc774d4799c987c /common.py | |
parent | 9bcbb4048cd82ea11ed469731eae95d808b99449 (diff) |
Many bugfixes motivated by some end-to-end testing.
Diffstat (limited to 'common.py')
-rw-r--r-- | common.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||