use py.builtin.exec_
This commit is contained in:
parent
0ef23dd31f
commit
fb043c355e
|
@ -109,7 +109,7 @@ class AssertionRewritingHook(object):
|
||||||
mod.__file__ = co.co_filename
|
mod.__file__ = co.co_filename
|
||||||
# Normally, this attribute is 3.2+.
|
# Normally, this attribute is 3.2+.
|
||||||
mod.__cached__ = pyc
|
mod.__cached__ = pyc
|
||||||
exec co in mod.__dict__
|
py.builtin.exec_(co, mod.__dict__)
|
||||||
except:
|
except:
|
||||||
del sys.modules[name]
|
del sys.modules[name]
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue