Update Tornado

This commit is contained in:
Ruud
2013-12-30 23:27:40 +01:00
parent d74342adee
commit 266429311b
19 changed files with 245 additions and 151 deletions
+5 -2
View File
@@ -124,11 +124,11 @@ class TracebackFuture(Future):
self.__exc_info = exc_info
self.set_exception(exc_info[1])
def result(self):
def result(self, timeout=None):
if self.__exc_info is not None:
raise_exc_info(self.__exc_info)
else:
return super(TracebackFuture, self).result()
return super(TracebackFuture, self).result(timeout=timeout)
class DummyExecutor(object):
@@ -151,6 +151,9 @@ def run_on_executor(fn):
The decorated method may be called with a ``callback`` keyword
argument and returns a future.
This decorator should be used only on methods of objects with attributes
``executor`` and ``io_loop``.
"""
@functools.wraps(fn)
def wrapper(self, *args, **kwargs):