mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
(Merge 3.2) Issue #10570: curses.putp() is now expecting a byte string, instead
of a Unicode string. This is an incompatible change, but putp() is used to emit terminfo commands, which are bytes strings, not Unicode strings.
This commit is contained in:
commit
65f51bb150
3 changed files with 6 additions and 4 deletions
|
@ -183,7 +183,7 @@ def module_funcs(stdscr):
|
|||
win = curses.newwin(5,5)
|
||||
win = curses.newwin(5,5, 1,1)
|
||||
curses.nl() ; curses.nl(1)
|
||||
curses.putp('abc')
|
||||
curses.putp(b'abc')
|
||||
curses.qiflush()
|
||||
curses.raw() ; curses.raw(1)
|
||||
curses.setsyx(5,5)
|
||||
|
@ -283,6 +283,7 @@ def test_unget_wch(stdscr):
|
|||
def test_issue10570():
|
||||
b = curses.tparm(curses.tigetstr("cup"), 5, 3)
|
||||
assert type(b) is bytes
|
||||
curses.putp(b)
|
||||
|
||||
def main(stdscr):
|
||||
curses.savetty()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue