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
0fb41b56
Commit
0fb41b56
authored
May 15, 2012
by
Giampaolo Rodola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused import in asyncore doc
parent
ffa1d0b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Doc/library/asynchat.rst
Doc/library/asynchat.rst
+3
-0
Doc/library/asyncore.rst
Doc/library/asyncore.rst
+1
-3
No files found.
Doc/library/asynchat.rst
View file @
0fb41b56
...
@@ -197,6 +197,9 @@ The :meth:`handle_request` method is called once all relevant input has been
...
@@ -197,6 +197,9 @@ The :meth:`handle_request` method is called once all relevant input has been
marshalled, after setting the channel terminator to ``None`` to ensure that
marshalled, after setting the channel terminator to ``None`` to ensure that
any extraneous data sent by the web client are ignored. ::
any extraneous data sent by the web client are ignored. ::
import asynchat
class http_request_handler(asynchat.async_chat):
class http_request_handler(asynchat.async_chat):
def __init__(self, sock, addr, sessions, log):
def __init__(self, sock, addr, sessions, log):
...
...
Doc/library/asyncore.rst
View file @
0fb41b56
...
@@ -277,7 +277,7 @@ asyncore Example basic HTTP client
...
@@ -277,7 +277,7 @@ asyncore Example basic HTTP client
Here is a very basic HTTP client that uses the :class:`dispatcher` class to
Here is a very basic HTTP client that uses the :class:`dispatcher` class to
implement its socket handling::
implement its socket handling::
import asyncore
, socket
import asyncore
class HTTPClient(asyncore.dispatcher):
class HTTPClient(asyncore.dispatcher):
...
@@ -317,7 +317,6 @@ Here is a basic echo server that uses the :class:`dispatcher` class to accept
...
@@ -317,7 +317,6 @@ Here is a basic echo server that uses the :class:`dispatcher` class to accept
connections and dispatches the incoming connections to a handler::
connections and dispatches the incoming connections to a handler::
import asyncore
import asyncore
import socket
class EchoHandler(asyncore.dispatcher_with_send):
class EchoHandler(asyncore.dispatcher_with_send):
...
@@ -341,4 +340,3 @@ connections and dispatches the incoming connections to a handler::
...
@@ -341,4 +340,3 @@ connections and dispatches the incoming connections to a handler::
server = EchoServer('localhost', 8080)
server = EchoServer('localhost', 8080)
asyncore.loop()
asyncore.loop()
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