[pypy-commit] pypy py3k: 2to3
mjacob
noreply at buildbot.pypy.org
Sun May 31 21:27:39 CEST 2015
Author: Manuel Jacob <me at manueljacob.de>
Branch: py3k
Changeset: r77732:8a80d24662e3
Date: 2015-05-31 21:24 +0200
http://bitbucket.org/pypy/pypy/changeset/8a80d24662e3/
Log: 2to3
diff --git a/pypy/module/sys/test/test_sysmodule.py b/pypy/module/sys/test/test_sysmodule.py
--- a/pypy/module/sys/test/test_sysmodule.py
+++ b/pypy/module/sys/test/test_sysmodule.py
@@ -609,7 +609,7 @@
tracer = Tracer()
func(tracer.trace)
sys.settrace(None)
- compare_events(func.func_code.co_firstlineno,
+ compare_events(func.__code__.co_firstlineno,
tracer.events, func.events)
@@ -627,7 +627,7 @@
def settrace_and_raise(tracefunc):
try:
_settrace_and_raise(tracefunc)
- except RuntimeError, exc:
+ except RuntimeError as exc:
pass
settrace_and_raise.events = [(2, 'exception'),
More information about the pypy-commit
mailing list