From 939d17676cac1c5eec68bc3c2672ce43d0ff85f3 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 12 Mar 2021 12:54:17 +0100 Subject: [PATCH] hound fixes --- pype/modules/avalon_apps/rest_api.py | 1 - pype/modules/user/rest_api.py | 1 - pype/modules/user/user_module.py | 2 +- pype/modules/webserver/base_routes.py | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pype/modules/avalon_apps/rest_api.py b/pype/modules/avalon_apps/rest_api.py index e41801984b..459103594a 100644 --- a/pype/modules/avalon_apps/rest_api.py +++ b/pype/modules/avalon_apps/rest_api.py @@ -7,7 +7,6 @@ import bson from bson.objectid import ObjectId import bson.json_util -from aiohttp.web_request import Request from aiohttp.web_response import Response from avalon.api import AvalonMongoDB diff --git a/pype/modules/user/rest_api.py b/pype/modules/user/rest_api.py index 5c872925e0..566425a19b 100644 --- a/pype/modules/user/rest_api.py +++ b/pype/modules/user/rest_api.py @@ -1,5 +1,4 @@ import json -from aiohttp.web_request import Request from aiohttp.web_response import Response diff --git a/pype/modules/user/user_module.py b/pype/modules/user/user_module.py index 4a8d11a2f9..71c5fd124e 100644 --- a/pype/modules/user/user_module.py +++ b/pype/modules/user/user_module.py @@ -24,7 +24,7 @@ class IUserModule: pass -class UserModule(PypeModule, ITrayModule): +class UserModule(PypeModule, ITrayModule, IWebServerRoutes): cred_folder_path = os.path.normpath( appdirs.user_data_dir('pype-app', 'pype') ) diff --git a/pype/modules/webserver/base_routes.py b/pype/modules/webserver/base_routes.py index 8730e133c8..f4f1abe16c 100644 --- a/pype/modules/webserver/base_routes.py +++ b/pype/modules/webserver/base_routes.py @@ -4,7 +4,6 @@ These must not be imported in module itself to not break Python 2 applications. """ -import json import inspect from aiohttp.http_exceptions import HttpBadRequest from aiohttp.web_exceptions import HTTPMethodNotAllowed