Commit c254005e authored by Denis Bilenko's avatar Denis Bilenko

add __all__ to gevent.core

parent 99b7b843
......@@ -35,6 +35,10 @@ __license__ = 'BSD'
__url__ = 'http://monkey.org/~dugsong/pyevent/'
__version__ = '0.4+'
__all__ = ['event', 'read_event', 'write_event', 'timer', 'signal', 'active_event',
'init', 'dispatch', 'loop', 'get_version', 'get_method', 'get_header_version']
# note, that .pxi files append stuff to __all__
import sys
import traceback
from pprint import pformat
......
__all__ += ['buffer']
cdef extern from "libevent.h":
struct evbuffer:
char *buf "buffer"
......
__all__ += ['dns_init', 'dns_shutdown', 'dns_resolve_ipv4', 'dns_resolve_ipv6',
'dns_resolve_reverse', 'dns_resolve_reverse_ipv6', 'dns_shutdown']
cdef extern from "netinet/in.h":
cdef enum:
INET6_ADDRSTRLEN
......@@ -139,3 +142,4 @@ def dns_resolve_reverse_ipv6(char *ip, int flags, callback, *args):
def dns_shutdown(int fail_requests=0):
"""Shutdown the async DNS resolver and terminate all active requests."""
evdns_shutdown(fail_requests)
__all__ += ['http_request', 'http_connection', 'http']
EVHTTP_REQUEST = 0
EVHTTP_RESPONSE = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment