Skip to content

Commit 991aacd

Browse files
committed
Don't pass \x00 to winstr.
Due to the hack in idle that we've added in idle to support the curses shipped with Python 3.3, we need to drop \x00s. winstr doesn't like them but we ungetch them in idle. --HG-- branch : 0.12-bugfix
1 parent acc08ce commit 991aacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ def bs(s):
16161616
curses.flushinp()
16171617
raise ValueError
16181618
# literal
1619-
elif 0 <= c < 127:
1619+
elif 0 < c < 127:
16201620
c = chr(c)
16211621
self.win.addstr(c, get_colpair(self.config, 'prompt'))
16221622
o += c

0 commit comments

Comments
 (0)