Commit 7a8ee5c6 authored by Denis Bilenko's avatar Denis Bilenko

hub.py: rename attribute 'DEFAULT_BACKEND' with 'backend'

parent 0b220651
...@@ -273,7 +273,7 @@ class Hub(greenlet): ...@@ -273,7 +273,7 @@ class Hub(greenlet):
'gevent.socket.BlockingResolver'] 'gevent.socket.BlockingResolver']
resolver_class = resolver_config(resolver_class, 'GEVENT_RESOLVER') resolver_class = resolver_config(resolver_class, 'GEVENT_RESOLVER')
threadpool_class = config('gevent.threadpool.ThreadPool', 'GEVENT_THREADPOOL') threadpool_class = config('gevent.threadpool.ThreadPool', 'GEVENT_THREADPOOL')
DEFAULT_BACKEND = config(None, 'GEVENT_BACKEND') backend = config(None, 'GEVENT_BACKEND')
format_context = 'pprint.pformat' format_context = 'pprint.pformat'
threadpool_size = 10 threadpool_size = 10
...@@ -288,7 +288,7 @@ class Hub(greenlet): ...@@ -288,7 +288,7 @@ class Hub(greenlet):
default = get_ident() == MAIN_THREAD default = get_ident() == MAIN_THREAD
loop_class = _import(self.loop_class) loop_class = _import(self.loop_class)
if loop is None: if loop is None:
loop = self.DEFAULT_BACKEND loop = self.backend
self.loop = loop_class(flags=loop, default=default) self.loop = loop_class(flags=loop, default=default)
self._resolver = None self._resolver = None
self._threadpool = None self._threadpool = None
......
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