BOM-2368: pyupgrade in LMS Directory (#26649)
* pyupgrade in lms dir * replace wildcard * pep8 fix * fix quality
This commit is contained in:
@@ -5,19 +5,23 @@ This module contains the WSGI application used for Apache deployment.
|
||||
It exposes a module-level variable named ``application``.
|
||||
"""
|
||||
|
||||
import os # lint-amnesty, pylint: disable=wrong-import-order, wrong-import-position
|
||||
|
||||
# This application object is used by the development server
|
||||
# as well as any WSGI server configured to use this file.
|
||||
from django.core.wsgi import \
|
||||
get_wsgi_application # lint-amnesty, pylint: disable=wrong-import-order, wrong-import-position
|
||||
|
||||
import lms.startup as startup # lint-amnesty, pylint: disable=wrong-import-position
|
||||
# Patch the xml libs before anything else.
|
||||
from safe_lxml import defuse_xml_libs
|
||||
|
||||
defuse_xml_libs()
|
||||
|
||||
import os # lint-amnesty, pylint: disable=wrong-import-order, wrong-import-position
|
||||
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.envs.aws")
|
||||
os.environ.setdefault("SERVICE_VARIANT", "lms")
|
||||
|
||||
import lms.startup as startup # lint-amnesty, pylint: disable=wrong-import-position
|
||||
startup.run()
|
||||
|
||||
# This application object is used by the development server
|
||||
# as well as any WSGI server configured to use this file.
|
||||
from django.core.wsgi import get_wsgi_application # lint-amnesty, pylint: disable=wrong-import-order, wrong-import-position
|
||||
application = get_wsgi_application() # pylint: disable=invalid-name
|
||||
|
||||
Reference in New Issue
Block a user