[pypy-commit] lang-smalltalk default: removed tracing on keyboard 's' and 't'
lwassermann
noreply at buildbot.pypy.org
Tue Oct 22 18:49:50 CEST 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
Branch:
Changeset: r514:3494932a8f0d
Date: 2013-10-22 18:49 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/3494932a8f0d/
Log: removed tracing on keyboard 's' and 't'
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -754,7 +754,7 @@
# This test deliberately test for equal W_Object class. The Smalltalk classes
# might be different (e.g. Symbol and ByteString)
if w_rcvr.__class__ is not w_replacement.__class__:
- raise PrimitiveFailedError()
+ raise PrimitiveFailedError
if (w_rcvr.size() - w_rcvr.instsize(interp.space) <= stop
or w_replacement.size() - w_replacement.instsize(interp.space) <= repStart + (stop - start)):
raise PrimitiveFailedError()
@@ -783,10 +783,6 @@
@expose_primitive(KBD_NEXT, unwrap_spec=[object])
def func(interp, s_frame, w_rcvr):
code = interp.space.get_display().next_keycode()
- if code == ord('t'):
- interp.trace = True
- elif code == ord('s'):
- interp.trace = False
if code == 0:
return interp.space.w_nil
else:
diff --git a/spyvm/shadow.py b/spyvm/shadow.py
--- a/spyvm/shadow.py
+++ b/spyvm/shadow.py
@@ -1425,4 +1425,4 @@
# w_self = self.w_self()
# assert isinstance(w_self, model.W_PointersObject)
# w_self._shadow = None
- # raise error.PrimitiveFailedError
\ No newline at end of file
+ # raise error.PrimitiveFailedError
More information about the pypy-commit
mailing list