Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
c254005e
Commit
c254005e
authored
Oct 08, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add __all__ to gevent.core
parent
99b7b843
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
gevent/core.pyx
gevent/core.pyx
+4
-0
gevent/evbuffer.pxi
gevent/evbuffer.pxi
+2
-0
gevent/evdns.pxi
gevent/evdns.pxi
+4
-0
gevent/evhttp.pxi
gevent/evhttp.pxi
+2
-0
No files found.
gevent/core.pyx
View file @
c254005e
...
...
@@ -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
...
...
gevent/evbuffer.pxi
View file @
c254005e
__all__
+=
[
'buffer'
]
cdef
extern
from
"libevent.h"
:
struct
evbuffer
:
char
*
buf
"buffer"
...
...
gevent/evdns.pxi
View file @
c254005e
__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
)
gevent/evhttp.pxi
View file @
c254005e
__all__
+=
[
'http_request'
,
'http_connection'
,
'http'
]
EVHTTP_REQUEST
=
0
EVHTTP_RESPONSE
=
1
...
...
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