Commit 20879e4c authored by Petr Viktorin's avatar Petr Viktorin

2to3: Apply the 'exec' fixer

parent 46b99911
lib2to3.fixes.fix_basestring lib2to3.fixes.fix_basestring
lib2to3.fixes.fix_dict lib2to3.fixes.fix_dict
lib2to3.fixes.fix_exec
lib2to3.fixes.fix_execfile
lib2to3.fixes.fix_funcattrs lib2to3.fixes.fix_funcattrs
lib2to3.fixes.fix_future lib2to3.fixes.fix_future
lib2to3.fixes.fix_has_key lib2to3.fixes.fix_has_key
......
...@@ -315,7 +315,7 @@ class Template(object): ...@@ -315,7 +315,7 @@ class Template(object):
def _exec(self, code, ns, pos): def _exec(self, code, ns, pos):
__traceback_hide__ = True __traceback_hide__ = True
try: try:
exec code in self.default_namespace, ns exec(code, self.default_namespace, ns)
except: except:
exc_info = sys.exc_info() exc_info = sys.exc_info()
e = exc_info[1] e = exc_info[1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment