Skip to content

bpython-curtsies -t doesn't work correctly #283

@ikanobori

Description

@ikanobori

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions