Skip to content

Crash upon help in bpython-curtsies #367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
myint opened this issue Aug 29, 2014 · 1 comment
Closed

Crash upon help in bpython-curtsies #367

myint opened this issue Aug 29, 2014 · 1 comment

Comments

@myint
Copy link
Contributor

myint commented Aug 29, 2014

$ bpython --version
bpython version mercurial on top of Python 3.4.1

$ bpython
>>>
Traceback (most recent call last):
  File "/Users/myint/Library/Python/3.4/bin/bpython-curtsies", line 9, in <module>
    load_entry_point('bpython==mercurial', 'console_scripts', 'bpython-curtsies')()
  File "/Users/myint/Library/Python/3.4/lib/python/site-packages/bpython/curtsies.py", line 66, in main
    mainloop(config, locals_, banner, interp, paste, interactive=(not exec_args))
  File "/Users/myint/Library/Python/3.4/lib/python/site-packages/bpython/curtsies.py", line 139, in mainloop
    process_event(e)
  File "/Users/myint/Library/Python/3.4/lib/python/site-packages/bpython/curtsies.py", line 120, in process_event
    repl.process_event(e)
  File "/Users/myint/Library/Python/3.4/lib/python/site-packages/bpython/curtsiesfrontend/repl.py", line 403, in process_event
    return self.process_key_event(e)
  File "/Users/myint/Library/Python/3.4/lib/python/site-packages/bpython/curtsiesfrontend/repl.py", line 481, in process_key_event
    self.pager(self.help_text())
  File "/Users/myint/Library/Python/3.4/lib/python/site-packages/bpython/curtsiesfrontend/repl.py", line 1182, in pager
    tmp.write(text)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tempfile.py", line 399, in func_wrapper
    return func(*args, **kwargs)
TypeError: 'str' does not support the buffer interface
@thomasballinger
Copy link
Member

Thanks, someone else just reported something similar with editing the current buffer. I'm not being careful enough about encoding the unicode strings.

I'm going to add tests for these - I guess by using a dummy subprocess?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants