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
326e563f
Commit
326e563f
authored
Jul 17, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify AsyncResult now that its keeping the exc_info around. Docs.
parent
105c1abe
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
139 additions
and
93 deletions
+139
-93
doc/conf.py
doc/conf.py
+1
-1
doc/generate_rst.py
doc/generate_rst.py
+6
-0
doc/gevent.event.rst
doc/gevent.event.rst
+1
-5
gevent/event.py
gevent/event.py
+122
-84
gevent/select.py
gevent/select.py
+3
-0
gevent/socket.py
gevent/socket.py
+3
-3
gevent/ssl.py
gevent/ssl.py
+3
-0
No files found.
doc/conf.py
View file @
326e563f
...
...
@@ -255,4 +255,4 @@ class MyClassDocumenter(ClassDocumenter):
members
.
sort
(
key
=
key
)
return
members_check_module
,
members
#
autodoc.ClassDocumenter = MyClassDocumenter
autodoc
.
ClassDocumenter
=
MyClassDocumenter
doc/generate_rst.py
View file @
326e563f
...
...
@@ -42,6 +42,12 @@ def generate_rst_for_module(module, do=True):
m
=
getattr
(
m
,
module
)
title
=
getattr
(
m
,
'__doc__'
,
None
)
if
title
:
lines
=
title
.
strip
().
splitlines
()
for
line
in
lines
:
# skip leading blanks. Support both styles of docstrings.
if
line
:
title
=
line
break
title
=
title
.
strip
().
split
(
'
\
n
'
)[
0
]
title
=
title
.
strip
(
' .'
)
prefix
=
':mod:`gevent.%s`'
%
module
...
...
doc/gevent.event.rst
View file @
326e563f
...
...
@@ -8,6 +8,7 @@
.. method:: is_set()
isSet()
ready()
Return true if and only if the internal flag is true.
...
...
@@ -15,8 +16,3 @@
.. autoclass:: gevent.event.AsyncResult
:members:
:undoc-members:
.. attribute:: value
Holds the value passed to :meth:`set` if :meth:`set` was called. Otherwise ``None``.
gevent/event.py
View file @
326e563f
This diff is collapsed.
Click to expand it.
gevent/select.py
View file @
326e563f
# Copyright (c) 2009-2011 Denis Bilenko. See LICENSE for details.
"""
Waiting for I/O completion.
"""
from
__future__
import
absolute_import
from
gevent.event
import
Event
from
gevent.hub
import
get_hub
...
...
gevent/socket.py
View file @
326e563f
...
...
@@ -4,11 +4,11 @@
This module provides socket operations and some related functions.
The API of the functions and classes matches the API of the corresponding
items in standard :mod:`socket` module exactly, but the synchronous functions
items in
the
standard :mod:`socket` module exactly, but the synchronous functions
in this module only block the current greenlet and let the others run.
For convenience, exceptions (like :class:`error <socket.error>` and :class:`timeout <socket.timeout>`)
as well as the constants from :mod:`socket` module are imported into this module.
as well as the constants from
the
:mod:`socket` module are imported into this module.
"""
import
sys
...
...
@@ -43,7 +43,7 @@ def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_address=N
global default timeout setting returned by :func:`getdefaulttimeout`
is used. If *source_address* is set it must be a tuple of (host, port)
for the socket to bind as a source address before making the connection.
A
n
host of '' or port 0 tells the OS to use the default.
A host of '' or port 0 tells the OS to use the default.
"""
host
,
port
=
address
...
...
gevent/ssl.py
View file @
326e563f
"""
Secure Sockets Layer (SSL/TLS) module.
"""
from
gevent.hub
import
PY3
from
gevent.hub
import
PYGTE279
...
...
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