Indentation problem caused >2.4 to break.

This commit is contained in:
Ryan Williams
2009-12-03 18:50:04 -08:00
parent 11f0337b8f
commit 9418f5241d

View File

@@ -18,8 +18,8 @@ class AllFailed(FanFailed):
try: try:
from contextlib import contextmanager from contextlib import contextmanager
exec(''' exec('''
@contextmanager @contextmanager
def item_impl(self): def item_impl(self):
""" Get an object out of the pool, for use with with statement. """ Get an object out of the pool, for use with with statement.
>>> from eventlet import pools >>> from eventlet import pools
@@ -36,7 +36,7 @@ try:
yield obj yield obj
finally: finally:
self.put(obj) self.put(obj)
''') ''')
except ImportError: except ImportError:
item_impl = None item_impl = None