crash when pressing <arrow-up>

17 views
Skip to first unread message

Inkane

unread,
Mar 5, 2012, 4:28:23 PM3/5/12
to bpython
Hi there,

I'm running the hg version under Chakra linux with Python 2.7.2.
Almost everything works, but when I press the <arrow-up> key or
scroll upwards I get a crash with the following traceback:
Traceback (most recent call last):
File "/usr/bin/bpython", line 9, in <module>
load_entry_point('bpython==mercurial', 'console_scripts',
'bpython')()
File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 1863,
in main
banner=banner)
File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 1762,
in curses_wrapper
return func(stdscr, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 1832,
in main_curses
clirepl.repl()
File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 1091,
in repl
inp = self.get_line()
File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 648, in
get_line
if self.p_key(key) is None:
File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 866, in
p_key
self.back()
File "/usr/lib/python2.7/site-packages/bpython/cli.py", line 566, in
back
self.s = self.rl_history.back()
File "/usr/lib/python2.7/site-packages/bpython/repl.py", line 181,
in back
elif match:
NameError: global name 'match' is not defined

After a short glance at the source: Shouldn't that be self.match (and
self.search)?

Thanks in advance,
Inkane

Simon de Vlieger

unread,
Mar 14, 2012, 5:50:14 PM3/14/12
to bpy...@googlegroups.com
Oh dear,

turns out that was me. I'll fix it.

Regards,

Simon de Vlieger

> --
> You received this message because you are subscribed to the Google Groups "bpython" group.
> To post to this group, send email to bpy...@googlegroups.com.
> To unsubscribe from this group, send email to bpython+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/bpython?hl=en.
>

Simon de Vlieger

unread,
Mar 14, 2012, 5:58:30 PM3/14/12
to bpy...@googlegroups.com
Inkane,

the commit is here: https://bitbucket.org/bobf/bpython/changeset/dc429dd96248

and I have moved the bpython mailinglist to actually show up in my
inbox instead of a small number on the bottom left of my inbox again
so I should notice things on the mailinglist faster. Thank you for
reporting the issue and thanks Andreas for pointing me to the
mailinglist.

Regards,

Simon de Vlieger

Inkane

unread,
Mar 14, 2012, 6:37:23 PM3/14/12
to bpy...@googlegroups.com
Works like a charm again. Thanks.
Reply all
Reply to author
Forward
0 new messages