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
dec43382
Commit
dec43382
authored
Nov 23, 2013
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix transport docstrings
parent
2427b50f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Lib/asyncio/transports.py
Lib/asyncio/transports.py
+5
-5
No files found.
Lib/asyncio/transports.py
View file @
dec43382
...
...
@@ -16,7 +16,7 @@ class BaseTransport:
return
self
.
_extra
.
get
(
name
,
default
)
def
close
(
self
):
"""Close
s
the transport.
"""Close the transport.
Buffered data will be flushed asynchronously. No more data
will be received. After all buffered data is flushed, the
...
...
@@ -92,7 +92,7 @@ class WriteTransport(BaseTransport):
self
.
write
(
data
)
def
write_eof
(
self
):
"""Close
s
the write end after flushing buffered data.
"""Close the write end after flushing buffered data.
(This is like typing ^D into a UNIX program reading from stdin.)
...
...
@@ -101,11 +101,11 @@ class WriteTransport(BaseTransport):
raise
NotImplementedError
def
can_write_eof
(
self
):
"""Return True if this
protocol
supports write_eof(), False if not."""
"""Return True if this
transport
supports write_eof(), False if not."""
raise
NotImplementedError
def
abort
(
self
):
"""Clos
e
s the transport immediately.
"""Closs the transport immediately.
Buffered data will be lost. No more data will be received.
The protocol's connection_lost() method will (eventually) be
...
...
@@ -150,7 +150,7 @@ class DatagramTransport(BaseTransport):
raise
NotImplementedError
def
abort
(
self
):
"""Close
s
the transport immediately.
"""Close the transport immediately.
Buffered data will be lost. No more data will be received.
The protocol's connection_lost() method will (eventually) be
...
...
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