From: Michael Tremer Date: Thu, 26 Oct 2017 16:29:21 +0000 (+0100) Subject: Drop empty API base handler X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f649e7cec4de1f8088553978f801ab450ff3ee51;p=pbs.git Drop empty API base handler Signed-off-by: Michael Tremer --- diff --git a/src/web/api.py b/src/web/api.py index a9400f5c..ad28fe1c 100644 --- a/src/web/api.py +++ b/src/web/api.py @@ -4,7 +4,7 @@ import tornado.web from . import base -class ApiPackagesAutocomplete(base.ApiBaseHandler): +class ApiPackagesAutocomplete(base.BaseHandler): def get(self): query = self.get_argument("q") if not query: diff --git a/src/web/base.py b/src/web/base.py index f4e246c4..5422c065 100644 --- a/src/web/base.py +++ b/src/web/base.py @@ -110,8 +110,4 @@ class BaseHandler(tornado.web.RequestHandler): tb = None self.render(error_document, status_code=status_code, - status_message=status_message, exc_info=exc_info, tb=tb, **kwargs) - - -class ApiBaseHandler(BaseHandler): - pass + status_message=status_message, exc_info=exc_info, tb=tb, **kwargs) \ No newline at end of file