mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
remove unused import in asyncore doc
This commit is contained in:
parent
ffa1d0b8d5
commit
0fb41b56ea
2 changed files with 4 additions and 3 deletions
|
@ -277,7 +277,7 @@ asyncore Example basic HTTP client
|
|||
Here is a very basic HTTP client that uses the :class:`dispatcher` class to
|
||||
implement its socket handling::
|
||||
|
||||
import asyncore, socket
|
||||
import asyncore
|
||||
|
||||
class HTTPClient(asyncore.dispatcher):
|
||||
|
||||
|
@ -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::
|
||||
|
||||
import asyncore
|
||||
import socket
|
||||
|
||||
class EchoHandler(asyncore.dispatcher_with_send):
|
||||
|
||||
|
@ -341,4 +340,3 @@ connections and dispatches the incoming connections to a handler::
|
|||
|
||||
server = EchoServer('localhost', 8080)
|
||||
asyncore.loop()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue