Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d2853180
Commit
d2853180
authored
Mar 09, 2011
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #5622: Fix curses.wrapper to raise correct exception if curses
initialization fails.
parent
c8ab6eeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
Lib/curses/wrapper.py
Lib/curses/wrapper.py
+5
-4
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/curses/wrapper.py
View file @
d2853180
...
@@ -43,7 +43,8 @@ def wrapper(func, *args, **kwds):
...
@@ -43,7 +43,8 @@ def wrapper(func, *args, **kwds):
return
func
(
stdscr
,
*
args
,
**
kwds
)
return
func
(
stdscr
,
*
args
,
**
kwds
)
finally
:
finally
:
# Set everything back to normal
# Set everything back to normal
stdscr
.
keypad
(
0
)
if
'stdscr'
in
locals
():
curses
.
echo
()
stdscr
.
keypad
(
0
)
curses
.
nocbreak
()
curses
.
echo
()
curses
.
endwin
()
curses
.
nocbreak
()
curses
.
endwin
()
Misc/NEWS
View file @
d2853180
...
@@ -37,6 +37,9 @@ Core and Builtins
...
@@ -37,6 +37,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #5622: Fix curses.wrapper to raise correct exception if curses
initialization fails.
- Issue #11391: Writing to a mmap object created with
- Issue #11391: Writing to a mmap object created with
``mmap.PROT_READ|mmap.PROT_EXEC`` would segfault instead of raising a
``mmap.PROT_READ|mmap.PROT_EXEC`` would segfault instead of raising a
TypeError. Patch by Charles-François Natali.
TypeError. Patch by Charles-François Natali.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment