Skip to content

Commit e2f75d6

Browse files
kevin-bateslresende
authored andcommitted
Fix download handler to not use deprecated maybe_future call
1 parent 349b5ae commit e2f75d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel_gateway/notebook_http/handlers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import json
77
import tornado.web
8+
from notebook.utils import maybe_future
89
from tornado.log import access_log
910
from .request_utils import (parse_body, parse_args, format_request,
1011
headers_to_dict, parameterize_path)
@@ -263,4 +264,4 @@ def initialize(self, path):
263264
@gen.coroutine
264265
def get(self, include_body=True):
265266
res = super(NotebookDownloadHandler, self).get(self.filename, include_body)
266-
yield gen.maybe_future(res)
267+
yield maybe_future(res)

0 commit comments

Comments
 (0)