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
34792d25
Commit
34792d25
authored
Jun 10, 2017
by
Jim Fasarakis-Hilliard
Committed by
Yury Selivanov
Jun 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TypeError is asyncio/proactor_events (#993)
parent
42e3acda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/asyncio/proactor_events.py
Lib/asyncio/proactor_events.py
+3
-2
No files found.
Lib/asyncio/proactor_events.py
View file @
34792d25
...
...
@@ -227,8 +227,9 @@ class _ProactorBaseWritePipeTransport(_ProactorBasePipeTransport,
def
write
(
self
,
data
):
if
not
isinstance
(
data
,
(
bytes
,
bytearray
,
memoryview
)):
raise
TypeError
(
'data argument must be byte-ish (%r)'
,
type
(
data
))
msg
=
(
"data argument must be a bytes-like object, not '%s'"
%
type
(
data
).
__name__
)
raise
TypeError
(
msg
)
if
self
.
_eof_written
:
raise
RuntimeError
(
'write_eof() already called'
)
...
...
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