Skip to content

Commit 4768c9a

Browse files
Vladimir Goncharovfantix
authored andcommitted
Add tornado extension
1 parent 60357a7 commit 4768c9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gino/ext/sanic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# noinspection PyPackageRequirements
22
from sanic.exceptions import NotFound
33

4-
from .. import api
4+
from ..api import Gino as _Gino
55
from ..local import enable_task_local, disable_task_local
66

77

@@ -16,7 +16,7 @@ async def get_or_404(cls, *args, **kwargs):
1616

1717

1818
# noinspection PyClassHasNoInit
19-
class Gino(api.Gino):
19+
class Gino(_Gino):
2020
"""Support Sanic web server.
2121
2222
By :meth:`init_app` GINO registers a few hooks on Sanic, so that GINO could
@@ -34,7 +34,7 @@ class Gino(api.Gino):
3434
Here `request['connection']` is a :class:`LazyConnection` object, see its
3535
doc string for more information.
3636
"""
37-
default_model_classes = api.Gino.default_model_classes + (SanicModelMixin,)
37+
default_model_classes = _Gino.default_model_classes + (SanicModelMixin,)
3838

3939
def init_app(self, app):
4040
task_local_enabled = [False]

0 commit comments

Comments
 (0)