Fixed a few small things.
This commit is contained in:
@@ -49,7 +49,7 @@ def tcp_listener(address, backlog=50):
|
|||||||
socket object on which one should call ``accept()`` to accept a connection
|
socket object on which one should call ``accept()`` to accept a connection
|
||||||
on the newly bound socket.
|
on the newly bound socket.
|
||||||
"""
|
"""
|
||||||
warnings.warn("""eventlet.api.tcp_listener is deprecated. Please use eventlet.green.socket instead. See examples/echoserver.py for an example.""",
|
warnings.warn("""eventlet.api.tcp_listener is deprecated. Please use eventlet.listen instead.""",
|
||||||
DeprecationWarning, stacklevel=2)
|
DeprecationWarning, stacklevel=2)
|
||||||
|
|
||||||
from eventlet import greenio, util
|
from eventlet import greenio, util
|
||||||
@@ -77,7 +77,7 @@ def connect_tcp(address, localaddr=None):
|
|||||||
Create a TCP connection to address ``(host, port)`` and return the socket.
|
Create a TCP connection to address ``(host, port)`` and return the socket.
|
||||||
Optionally, bind to localaddr ``(host, port)`` first.
|
Optionally, bind to localaddr ``(host, port)`` first.
|
||||||
"""
|
"""
|
||||||
warnings.warn("""eventlet.api.connect_tcp is deprecated. Please use eventlet.green.socket instead. See examples/connect.py for an example.""",
|
warnings.warn("""eventlet.api.connect_tcp is deprecated. Please use eventlet.connect instead.""",
|
||||||
DeprecationWarning, stacklevel=2)
|
DeprecationWarning, stacklevel=2)
|
||||||
|
|
||||||
from eventlet import greenio, util
|
from eventlet import greenio, util
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import sys
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
from eventlet.pools import Pool
|
from eventlet.pools import Pool
|
||||||
from eventlet.processes import DeadProcess
|
|
||||||
from eventlet import timeout
|
from eventlet import timeout
|
||||||
from eventlet import greenthread
|
from eventlet import greenthread
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user