SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
|
@ -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:
|
Loading…
Add table
Add a link
Reference in a new issue