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:
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