Commit 8a30a54e authored by Denis Bilenko's avatar Denis Bilenko

conf.py: don't include stuff that we import from stdlib in gevent.socket documentation

parent 6eb2dfbe
......@@ -202,18 +202,15 @@ latex_documents = [
# prevent some stuff from showing up in docs
import gevent.queue
import socket
import gevent.http
import gevent.socket
del gevent.http.HTTPServer.spawn # it's a parameter, not a method
del gevent.Greenlet.throw
gevent.socket.__all__.remove('error')
gevent.socket.__all__.remove('gaierror')
gevent.socket.__all__.remove('timeout')
try:
gevent.socket.__all__.remove('sslerror')
except:
pass
del gevent.socket.socket.fd
for item in gevent.socket.__all__[:]:
if getattr(gevent.socket, item) is getattr(socket, item):
gevent.socket.__all__.remove(item)
# order the methods in the class documentation the same way they are ordered in the source code
......
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