On 2013-01-27 09:45:16, Mike Vella wrote:
> If I press F8 after starting bpython, I get an error with the following
> trace:
>
> Traceback (most recent call last):
> File "/usr/local/bin/bpython", line 9, in <module>
> load_entry_point('bpython==0.12', 'console_scripts', 'bpython')()
> File "/usr/local/lib/python2.7/dist-packages/bpython/cli.py", line 1918,
> in main
> banner=banner)
> File "/usr/local/lib/python2.7/dist-packages/bpython/cli.py", line 1815,
> in curses_wrapper
> return func(stdscr, *args, **kwargs)
> File "/usr/local/lib/python2.7/dist-packages/bpython/cli.py", line 1888,
> in main_curses
> exit_value = clirepl.repl()
> File "/usr/local/lib/python2.7/dist-packages/bpython/cli.py", line 1116,
> in repl
> inp = self.get_line()
> File "/usr/local/lib/python2.7/dist-packages/bpython/cli.py", line 673,
> in get_line
> if self.p_key(key) is None:
> File "/usr/local/lib/python2.7/dist-packages/bpython/cli.py", line 962,
> in p_key
> self.pastebin()
> File "/usr/local/lib/python2.7/dist-packages/bpython/repl.py", line 726,
> in pastebin
> not self.interact.confirm(_("Pastebin buffer? (y/N) "))):
> File "/usr/local/lib/python2.7/dist-packages/bpython/cli.py", line 300,
> in confirm
> reply = self.statusbar.prompt(q)
> File "/usr/local/lib/python2.7/dist-packages/bpython/cli.py", line 1621,
> in prompt
> self.win.addstr(c, get_colpair(self.config, 'prompt'))
> TypeError: must be string without null bytes, not str
>
> This doesn't always happen, though I so far haven't been able to determine
> the conditions which cause it.
>
> I am running bpython version 0.12 on top of Python 2.7.3.Yes, this slipped in while we were fixing compatibility issues with Python 3.3. It's now fixed in the hg repository and there will be a bug fix release soon. Regards -- Sebastian Ramacher
signature.asc
Description: Digital signature
