Commit 5e51ec25 authored by Denis Bilenko's avatar Denis Bilenko

make doc/conf.py importable from Python < 2.6. Thanks to Örjan Persson.

parent d3b381db
......@@ -220,7 +220,7 @@ del gevent.http.HTTPServer.spawn # it's a parameter, not a method
del gevent.Greenlet.throw
del gevent.socket.socket.fd
for item in gevent.socket.__all__[:]:
if getattr(gevent.socket, item) is getattr(socket, item):
if getattr(gevent.socket, item) is getattr(socket, item, None):
gevent.socket.__all__.remove(item)
......
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