[py-svn] py-trunk commit e9de6deb4da5: remove uneeded exec
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Jun 25 20:15:13 CEST 2010
# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview
# User Benjamin Peterson <benjamin at python.org>
# Date 1277486691 18000
# Node ID e9de6deb4da5331fc728f2cd636f8f75fbdeaebe
# Parent 5c9a855754547f6fdf5b26ad794523e78e5e8675
remove uneeded exec
--- a/py/_builtin.py
+++ b/py/_builtin.py
@@ -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):
More information about the pytest-commit
mailing list