From 963602feb8b08a2b237e46d72a3f972b0bd7bf5c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 22 Jun 2022 17:10:20 +0800 Subject: [PATCH] bugfix --- ahserver/dbadmin.py | 7 +------ ahserver/restful.py | 8 +------- ahserver/version.py | 4 +++- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/ahserver/dbadmin.py b/ahserver/dbadmin.py index 4934f7d..0c75e4f 100644 --- a/ahserver/dbadmin.py +++ b/ahserver/dbadmin.py @@ -2,10 +2,7 @@ import os import re import traceback -from aiohttp.web_urldispatcher import StaticResource, _WebHandler, PathLike -from aiohttp.web_urldispatcher import Optional, _ExpectHandler -from aiohttp.web_urldispatcher import Path -from aiohttp.web_response import Response, StreamResponse +from aiohttp.web_response import Response from aiohttp.web_exceptions import ( HTTPException, HTTPExpectationFailed, @@ -14,9 +11,7 @@ from aiohttp.web_exceptions import ( HTTPNotFound, ) from aiohttp import web -from aiohttp.web_fileresponse import FileResponse from aiohttp.web_request import Request -from aiohttp.web_response import Response, StreamResponse from aiohttp.web_routedef import AbstractRouteDef from aiohttp.web import json_response diff --git a/ahserver/restful.py b/ahserver/restful.py index d1b79bc..b832955 100644 --- a/ahserver/restful.py +++ b/ahserver/restful.py @@ -2,10 +2,7 @@ import os import re import traceback -from aiohttp.web_urldispatcher import StaticResource, _WebHandler, PathLike -from aiohttp.web_urldispatcher import Optional, _ExpectHandler -from aiohttp.web_urldispatcher import Path -from aiohttp.web_response import Response, StreamResponse +from aiohttp.web_response import Response from aiohttp.web_exceptions import ( HTTPException, HTTPExpectationFailed, @@ -14,10 +11,7 @@ from aiohttp.web_exceptions import ( HTTPNotFound, ) from aiohttp import web -from aiohttp.web_fileresponse import FileResponse from aiohttp.web_request import Request -from aiohttp.web_response import Response, StreamResponse -from aiohttp.web_routedef import AbstractRouteDef from aiohttp.web import json_response diff --git a/ahserver/version.py b/ahserver/version.py index ac44a66..e558bde 100644 --- a/ahserver/version.py +++ b/ahserver/version.py @@ -1,4 +1,6 @@ +# fixed bug in restful.py delete import _WebHandler from aiohttp. web_urldispatcher +__version__ = '0.2.13' # fixed bug in processorResource.py, delete import _WebHandler from aiohttp.web_urldispatcher -__version__ = '0.2.12' +# __version__ = '0.2.12' # apply a initial version for sqlor #__version__ = '0.2.11'