Indentation problem caused >2.4 to break.
This commit is contained in:
@@ -18,8 +18,8 @@ class AllFailed(FanFailed):
|
||||
try:
|
||||
from contextlib import contextmanager
|
||||
exec('''
|
||||
@contextmanager
|
||||
def item_impl(self):
|
||||
@contextmanager
|
||||
def item_impl(self):
|
||||
""" Get an object out of the pool, for use with with statement.
|
||||
|
||||
>>> from eventlet import pools
|
||||
@@ -36,7 +36,7 @@ try:
|
||||
yield obj
|
||||
finally:
|
||||
self.put(obj)
|
||||
''')
|
||||
''')
|
||||
except ImportError:
|
||||
item_impl = None
|
||||
|
||||
|
Reference in New Issue
Block a user