From 8993b47041173eaa0531293b847b700636ee30e8 Mon Sep 17 00:00:00 2001 From: "Paul J. Dorn" Date: Fri, 8 Dec 2023 01:49:42 +0100 Subject: [PATCH] pylint: shut up about method-scope cyclic import --- gunicorn/app/wsgiapp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gunicorn/app/wsgiapp.py b/gunicorn/app/wsgiapp.py index 4e0031234..26af84332 100644 --- a/gunicorn/app/wsgiapp.py +++ b/gunicorn/app/wsgiapp.py @@ -12,6 +12,8 @@ class WSGIApplication(Application): def init(self, parser, opts, args): + # pylint: disable=cyclic-import + self.app_uri = None if opts.paste: @@ -48,6 +50,8 @@ def load_wsgiapp(self): return util.import_app(self.app_uri) def load_pasteapp(self): + # pylint: disable=cyclic-import + from .pasterapp import get_wsgi_app return get_wsgi_app(self.app_uri, defaults=self.cfg.paste_global_conf)