cpython: e41663970ca5 (original) (raw)

Mercurial > cpython

changeset 73311:e41663970ca5 3.2

Issue #10570: curses.tigetstr() is now expecting a byte string, instead of a Unicode string. This is an incompatible change, but the previous behaviour was completly wrong. [#10570]

Victor Stinner victor.stinner@haypocalc.com
date Wed, 02 Nov 2011 23:45:29 +0100
parents 4dc5590dbd0b
children ab11a6a73683 2c0253d4d9ba
files Doc/library/curses.rst Lib/test/test_curses.py Misc/NEWS Modules/_cursesmodule.c
diffstat 4 files changed, 11 insertions(+), 3 deletions(-)[+] [-] Doc/library/curses.rst 2 Lib/test/test_curses.py 7 Misc/NEWS 3 Modules/_cursesmodule.c 2

line wrap: on

line diff

--- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -566,7 +566,7 @@ The module :mod:curses defines the fol Instantiate the string str with the supplied parameters, where str should be a parameterized string obtained from the terminfo database. E.g.

--- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -190,7 +190,7 @@ def module_funcs(stdscr): curses.tigetflag('hc') curses.tigetnum('co') curses.tigetstr('cr')

+ def main(stdscr): curses.savetty() try: @@ -272,6 +276,7 @@ def main(stdscr): test_userptr_without_set(stdscr) test_resize_term(stdscr) test_issue6243(stdscr)

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -66,6 +66,9 @@ Core and Builtins Library ------- +- Issue #10570: curses.tigetstr() is now expecting a byte string, instead of

--- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2600,7 +2600,7 @@ PyCurses_tparm(PyObject *self, PyObject PyCursesSetupTermCalled;