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
bd2d30cf
Commit
bd2d30cf
authored
Mar 21, 2013
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #17209: curses.window.get_wch() now handles correctly KeyboardInterrupt (CTRL+c)
parent
6bd52022
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_cursesmodule.c
Modules/_cursesmodule.c
+3
-0
No files found.
Misc/NEWS
View file @
bd2d30cf
...
@@ -196,6 +196,9 @@ Core and Builtins
...
@@ -196,6 +196,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #17209: curses.window.get_wch() now handles correctly KeyboardInterrupt
(CTRL+c).
- Issue #5713: smtplib now handles 421 (closing connection) error codes when
- Issue #5713: smtplib now handles 421 (closing connection) error codes when
sending mail by closing the socket and reporting the 421 error code via the
sending mail by closing the socket and reporting the 421 error code via the
exception appropriate to the command that received the error response.
exception appropriate to the command that received the error response.
...
...
Modules/_cursesmodule.c
View file @
bd2d30cf
...
@@ -1181,6 +1181,9 @@ PyCursesWindow_Get_WCh(PyCursesWindowObject *self, PyObject *args)
...
@@ -1181,6 +1181,9 @@ PyCursesWindow_Get_WCh(PyCursesWindowObject *self, PyObject *args)
return
NULL
;
return
NULL
;
}
}
if
(
ct
==
ERR
)
{
if
(
ct
==
ERR
)
{
if
(
PyErr_CheckSignals
())
return
NULL
;
/* get_wch() returns ERR in nodelay mode */
/* get_wch() returns ERR in nodelay mode */
PyErr_SetString
(
PyCursesError
,
"no input"
);
PyErr_SetString
(
PyCursesError
,
"no input"
);
return
NULL
;
return
NULL
;
...
...
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