22 lines
532 B
Text
22 lines
532 B
Text
fix the build with tornado6
|
|
|
|
backport of commit 15cfa135 from upstream
|
|
|
|
Index: apertium_apy/handlers/stats.py
|
|
--- apertium_apy/handlers/stats.py.orig
|
|
+++ apertium_apy/handlers/stats.py
|
|
@@ -1,12 +1,12 @@
|
|
from datetime import datetime, timedelta
|
|
|
|
-import tornado.web
|
|
+import tornado.gen
|
|
|
|
from apertium_apy.handlers.base import BaseHandler
|
|
|
|
|
|
class StatsHandler(BaseHandler):
|
|
- @tornado.web.asynchronous
|
|
+ @tornado.gen.coroutine
|
|
def get(self):
|
|
num_requests = self.get_argument('requests', 1000)
|
|
try:
|