SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,22 @@
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: