[pypy-commit] pypy py3.3: Fix a bit the stack trace formatted by FaultHandler

amauryfa noreply at buildbot.pypy.org
Mon Dec 29 21:28:29 CET 2014


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.3
Changeset: r75139:3d0aa9a34f0a
Date: 2014-12-19 20:30 +0100
http://bitbucket.org/pypy/pypy/changeset/3d0aa9a34f0a/

Log:	Fix a bit the stack trace formatted by FaultHandler

diff --git a/pypy/module/faulthandler/interp_faulthandler.py b/pypy/module/faulthandler/interp_faulthandler.py
--- a/pypy/module/faulthandler/interp_faulthandler.py
+++ b/pypy/module/faulthandler/interp_faulthandler.py
@@ -89,10 +89,10 @@
             code = frame.pycode
             lineno = frame.get_last_lineno()
             if code:
-                os.write(fd, "File \"%s\", line %s in %s\n" % (
+                os.write(fd, "  File \"%s\", line %s in %s\n" % (
                         code.co_filename, lineno, code.co_name))
             else:
-                os.write(fd, "File ???, line %s in ???\n" % (
+                os.write(fd, "  File ???, line %s in ???\n" % (
                         lineno,))
 
             frame = frame.f_backref()


More information about the pypy-commit mailing list