Skip to content

Commit 324a9c6

Browse files
committed
Use tornado.concurrent.Future instead of tornado.concurrent.TracebackFuture
tornado.concurrent.Future superceded tornado.concurrent.TracebackFuture in Tornado 4.0. tornado.concurrent.TracebackFuture has been removed in Tornado 5.x.
1 parent 069d112 commit 324a9c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pusher/tornado.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import tornado
1111
import tornado.httpclient
1212

13-
from tornado.concurrent import TracebackFuture
13+
from tornado.concurrent import Future
1414

1515
from pusher.http import process_response
1616

@@ -30,7 +30,7 @@ def send_request(self, request):
3030
method = request.method
3131
data = request.body
3232
headers = {'Content-Type': 'application/json'}
33-
future = TracebackFuture()
33+
future = Future()
3434

3535
def process_response_future(response):
3636
if response.exc_info() is not None:

0 commit comments

Comments
 (0)