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
1e73dbbc
Commit
1e73dbbc
authored
Mar 26, 2017
by
Jim Fasarakis-Hilliard
Committed by
Łukasz Langa
Mar 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix small exception typos in Lib (#818)
parent
f8beb983
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/_pyio.py
Lib/_pyio.py
+2
-2
Lib/asyncio/windows_utils.py
Lib/asyncio/windows_utils.py
+1
-1
No files found.
Lib/_pyio.py
View file @
1e73dbbc
...
...
@@ -766,7 +766,7 @@ class _BufferedIOMixin(BufferedIOBase):
def
flush
(
self
):
if
self
.
closed
:
raise
ValueError
(
"flush o
f
closed file"
)
raise
ValueError
(
"flush o
n
closed file"
)
self
.
raw
.
flush
()
def
close
(
self
):
...
...
@@ -1214,7 +1214,7 @@ class BufferedWriter(_BufferedIOMixin):
def
_flush_unlocked
(
self
):
if
self
.
closed
:
raise
ValueError
(
"flush o
f
closed file"
)
raise
ValueError
(
"flush o
n
closed file"
)
while
self
.
_write_buf
:
try
:
n
=
self
.
raw
.
write
(
self
.
_write_buf
)
...
...
Lib/asyncio/windows_utils.py
View file @
1e73dbbc
...
...
@@ -149,7 +149,7 @@ class PipeHandle:
def
fileno
(
self
):
if
self
.
_handle
is
None
:
raise
ValueError
(
"I/O operatio
o
n on closed pipe"
)
raise
ValueError
(
"I/O operation on closed pipe"
)
return
self
.
_handle
def
close
(
self
,
*
,
CloseHandle
=
_winapi
.
CloseHandle
):
...
...
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