refactor: Remove PyContracts usage. (#27887)
* refactor: Remove PyContracts usage. We have not used PyContracts in a while and it is overhead we don't need in edx-platform. https://openedx.atlassian.net/browse/DEPR-147 * chore: Updating Python Requirements (#28018) Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
This commit is contained in:
@@ -12,10 +12,6 @@ It exposes a module-level variable named ``application``. Django's
|
||||
from safe_lxml import defuse_xml_libs
|
||||
defuse_xml_libs()
|
||||
|
||||
# Disable PyContract contract checking when running as a webserver
|
||||
import contracts # lint-amnesty, pylint: disable=wrong-import-order, wrong-import-position
|
||||
contracts.disable_all()
|
||||
|
||||
import os # lint-amnesty, pylint: disable=wrong-import-order, wrong-import-position
|
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.envs.aws")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user