Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r163:64f1c2e6d88e
Date: 2012-02-05 18:44 +0100
http://bitbucket.org/pypy/pyrepl/changeset/64f1c2e6d88e/

Log:    Sorry. Use the same version as pypy's pyrepl.

diff --git a/pyrepl/unix_console.py b/pyrepl/unix_console.py
--- a/pyrepl/unix_console.py
+++ b/pyrepl/unix_console.py
@@ -411,9 +411,12 @@
                    e.args[4] == 'unexpected end of data':
                 pass
             else:
-                #raise  -- but better to ignore UnicodeDecodeErrors here...
+                # was: "raise".  But it crashes pyrepl, and by extension the
+                # pypy currently running, in which we are e.g. in the middle
+                # of some debugging session.  Argh.  Instead just print an
+                # error message to stderr and continue running, for now.
                 self.partial_char = ''
-                return
+                sys.stderr.write('\n%s: %s\n' % (e.__class__.__name__, e))
         else:
             self.partial_char = ''
             self.event_queue.push(c)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to