Issue #5622: merge fix from 3.1.
This commit is contained in:
commit
2d12f96658
|
@ -43,7 +43,8 @@ def wrapper(func, *args, **kwds):
|
|||
return func(stdscr, *args, **kwds)
|
||||
finally:
|
||||
# Set everything back to normal
|
||||
stdscr.keypad(0)
|
||||
curses.echo()
|
||||
curses.nocbreak()
|
||||
curses.endwin()
|
||||
if 'stdscr' in locals():
|
||||
stdscr.keypad(0)
|
||||
curses.echo()
|
||||
curses.nocbreak()
|
||||
curses.endwin()
|
||||
|
|
|
@ -31,6 +31,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #5622: Fix curses.wrapper to raise correct exception if curses
|
||||
initialization fails.
|
||||
|
||||
- Issue #11391: Writing to a mmap object created with
|
||||
``mmap.PROT_READ|mmap.PROT_EXEC`` would segfault instead of raising a
|
||||
TypeError. Patch by Charles-François Natali.
|
||||
|
|
Loading…
Reference in New Issue