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
db932786
Commit
db932786
authored
May 10, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Plain Diff
Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear
the end-of-file indicator after CTRL+d.
parents
72547622
4755ab01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
Misc/NEWS
Misc/NEWS
+3
-0
Parser/myreadline.c
Parser/myreadline.c
+1
-0
No files found.
Misc/NEWS
View file @
db932786
...
@@ -10,6 +10,9 @@ What's New in Python 3.2.1?
...
@@ -10,6 +10,9 @@ What's New in Python 3.2.1?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
clear the end-of-file indicator after CTRL+d.
- Issue #1856: Avoid crashes and lockups when daemon threads run while the
- Issue #1856: Avoid crashes and lockups when daemon threads run while the
interpreter is shutting down; instead, these threads are now killed when
interpreter is shutting down; instead, these threads are now killed when
they try to take the GIL.
they try to take the GIL.
...
...
Parser/myreadline.c
View file @
db932786
...
@@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE *fp)
...
@@ -73,6 +73,7 @@ my_fgets(char *buf, int len, FILE *fp)
}
}
#endif
/* MS_WINDOWS */
#endif
/* MS_WINDOWS */
if
(
feof
(
fp
))
{
if
(
feof
(
fp
))
{
clearerr
(
fp
);
return
-
1
;
/* EOF */
return
-
1
;
/* EOF */
}
}
#ifdef EINTR
#ifdef EINTR
...
...
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