Author: Manuel Jacob <m...@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'),
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to