ports/www/apertium-apy/patches/patch-apertium_apy_handlers_stats_py

23 lines
532 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
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: