Commits

Michael Hudson-Doyle committed 5f47f9f

Update README

Make unicode handling a bit less silly again!

Comments (0)

Files changed (2)

-This is pyrepl 0.8, a readline-a-like in Python.
+This is pyrepl 0.8.1, a readline-a-like in Python.
 
 http://pyrepl.codespeak.net/
 
 emails, so don't think I'll be irritated by the banality of your
 comments!)
 
+Summary of 0.8.1:
+ + Fixes 
+   - in the area of unbound keys and unknown commands
+   - in quoted-insert
+   - in unicode support
+ + make Reader and subclasses new-style classes
+   - make the inheritance hierachy look like this
+                     Reader
+                    /      \
+      HistoricalReader   CompletingReader
+                    \      /
+                PythonicReader
+     Turns out I've been wanting new-style classes since before they existed!
+   - needed to slightly change the way keymaps are built
+
 Summary of 0.8.0:
  + A whole bundle of things.
    - unicode support (although working out what encoding the terminal 

pyrepl/unix_console.py

                         c += os.read(self.input_fd, 1)
                         try:
                             c = unicode(c, self.encoding)
-                        except:
-                            continue
+                        except UnicodeError, e:
+                            if len(e.args) > 4 and \
+                               e.args[4] == 'unexpected end of data':
+                                continue
+                            else:
+                                raise
                         else:
                             break
                         
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.