Author: Armin Rigo <[email protected]>
Branch: py3.5-reverse-debugger
Changeset: r94660:216549ff7482
Date: 2018-05-23 19:40 +0200
http://bitbucket.org/pypy/pypy/changeset/216549ff7482/
Log: manual 2to3
diff --git a/pypy/interpreter/reverse_debugging.py
b/pypy/interpreter/reverse_debugging.py
--- a/pypy/interpreter/reverse_debugging.py
+++ b/pypy/interpreter/reverse_debugging.py
@@ -532,19 +532,18 @@
prepare_print_environment(space)
space.appexec([space.sys,
frame.getdictscope()], """(sys, locals):
- lst = locals.keys()
- lst.sort()
- print 'Locals:'
+ lst = sorted(locals.keys())
+ print('Locals:')
for key in lst:
try:
- print ' %s =' % key,
+ print(' %s =' % key, end=' ', flush=True)
s = '%r' % locals[key]
if len(s) > 140:
s = s[:100] + '...' + s[-30:]
- print s
+ print(s)
except:
exc, val, tb = sys.exc_info()
- print '!<%s: %r>' % (exc, val)
+ print('!<%s: %r>' % (exc, val))
""")
except OperationError as e:
revdb.send_output('%s\n' % e.errorstr(space, use_repr=True))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit