use py.builtin.exec_

This commit is contained in:
Benjamin Peterson 2011-07-07 09:27:40 -05:00
parent 0ef23dd31f
commit fb043c355e
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class AssertionRewritingHook(object):
mod.__file__ = co.co_filename
# Normally, this attribute is 3.2+.
mod.__cached__ = pyc
exec co in mod.__dict__
py.builtin.exec_(co, mod.__dict__)
except:
del sys.modules[name]
raise