From 218db5222983b2b102b5f32a77845468cdaf9dab Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sun, 18 Feb 2018 11:21:57 +0000 Subject: Rename "Websocket" to "WS" to avoid confusion with the gevents-websocket WebSocket class --- pysite/route_manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pysite/route_manager.py') diff --git a/pysite/route_manager.py b/pysite/route_manager.py index b3f71643..739af726 100644 --- a/pysite/route_manager.py +++ b/pysite/route_manager.py @@ -9,7 +9,7 @@ from flask_sockets import Sockets from pysite.base_route import APIView, BaseView, ErrorView, RouteView from pysite.database import RethinkDB -from pysite.websockets import Websocket +from pysite.websockets import WS TEMPLATES_PATH = "../templates" STATIC_PATH = "../static" @@ -82,10 +82,10 @@ class RouteManager: cls is not ErrorView and cls is not RouteView and cls is not APIView and - cls is not Websocket and + cls is not WS and ( - BaseView in cls.__mro__ or - Websocket in cls.__mro__ + BaseView in cls.__mro__ or + WS in cls.__mro__ ) ): cls.setup(self, blueprint) -- cgit v1.2.3