SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
27
www/apertium-apy/patches/patch-apertium_apy_handlers_base_py
Normal file
27
www/apertium-apy/patches/patch-apertium_apy_handlers_base_py
Normal file
|
@ -0,0 +1,27 @@
|
|||
fix the build with tornado6
|
||||
|
||||
backport of commit 15cfa135 from upstream
|
||||
|
||||
Index: apertium_apy/handlers/base.py
|
||||
--- apertium_apy/handlers/base.py.orig
|
||||
+++ apertium_apy/handlers/base.py
|
||||
@@ -5,6 +5,7 @@ import sys
|
||||
from datetime import datetime
|
||||
|
||||
import tornado
|
||||
+import tornado.gen
|
||||
import tornado.web
|
||||
from tornado.escape import utf8
|
||||
from tornado.locks import Semaphore
|
||||
@@ -180,9 +181,9 @@ class BaseHandler(tornado.web.RequestHandler):
|
||||
self.set_header('Access-Control-Allow-Methods', 'GET,POST,OPTIONS')
|
||||
self.set_header('Access-Control-Allow-Headers', 'accept, cache-control, origin, x-requested-with, x-file-name, content-type')
|
||||
|
||||
- @tornado.web.asynchronous
|
||||
+ @tornado.gen.coroutine
|
||||
def post(self):
|
||||
- self.get()
|
||||
+ yield self.get()
|
||||
|
||||
def options(self):
|
||||
self.set_status(204)
|
Loading…
Add table
Add a link
Reference in a new issue