summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-03 19:35:40 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-03 19:35:40 (GMT)
commitb3bc7e764db4327953aaaf1316e0edc0ff6b16fb (patch)
treee6aab05b9902ed7b68d4e43f7e0d824d27bc5adf /Lib
parent9c2f42f253d37496d52178377ab5e88f2e231401 (diff)
downloadcpython-b3bc7e764db4327953aaaf1316e0edc0ff6b16fb.zip
cpython-b3bc7e764db4327953aaaf1316e0edc0ff6b16fb.tar.gz
cpython-b3bc7e764db4327953aaaf1316e0edc0ff6b16fb.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_curses.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 0980783..5812147 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -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)
@@ -267,6 +267,7 @@ def test_issue6243(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()