remove uneeded exec

--HG--
branch : trunk
This commit is contained in:
Benjamin Peterson 2010-06-25 12:24:51 -05:00
parent 4d75c703a0
commit d82d65d95e
1 changed files with 4 additions and 6 deletions

View File

@ -189,12 +189,10 @@ else:
exec2(obj, globals, locals)
if sys.version_info >= (3,0):
exec ("""
def _reraise(cls, val, tb):
__tracebackhide__ = True
assert hasattr(val, '__traceback__')
raise val
""")
def _reraise(cls, val, tb):
__tracebackhide__ = True
assert hasattr(val, '__traceback__')
raise val
else:
exec ("""
def _reraise(cls, val, tb):