Author: Lars Wassermann <lars.wasserm...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit