-
-
Notifications
You must be signed in to change notification settings - Fork 252
bpython-curtsies -t doesn't work correctly #283
Copy link
Copy link
Closed
Labels
Description
unicode problems
#!python
Traceback (most recent call last):
File "/usr/local/bin/bpython-curtsies", line 9, in <module>
load_entry_point('bpython==mercurial', 'console_scripts', 'bpython-curtsies')()
File "/Users/tomb/Dropbox/code/bpython/bpython/curtsies.py", line 52, in main
mainloop(config, locals_, banner, interp, paste)
File "/Users/tomb/Dropbox/code/bpython/bpython/curtsies.py", line 81, in mainloop
process_event(paste)
File "/Users/tomb/Dropbox/code/bpython/bpython/curtsies.py", line 68, in process_event
repl.process_event(e)
File "/Users/tomb/Dropbox/code/bpython/bpython/curtsiesfrontend/repl.py", line 288, in process_event
self.process_simple_event(ee)
File "/Users/tomb/Dropbox/code/bpython/bpython/curtsiesfrontend/repl.py", line 428, in process_simple_event
self.add_normal_character(e if len(e) == 1 else e[-1]) #strip control seq
File "/Users/tomb/Dropbox/code/bpython/bpython/curtsiesfrontend/repl.py", line 457, in add_normal_character
if is_nop(char):
File "/Users/tomb/Dropbox/code/bpython/bpython/curtsiesfrontend/repl.py", line 945, in is_nop
return unicodedata.category(char) == 'Cc'
TypeError: must be unicode, not str
- Bitbucket: https://bitbucket.org/bobf/bpython/issue/283
- Originally Reported By:
- Originally Created At: 2014-05-10T03:32:08.389
Reactions are currently unavailable