Files
edx-platform/lms/djangoapps/courseware/__init__.py
Kyle McCormick 9aefd6f986 style: django-not-configured is not a sensible lint-amnesty value (#26862)
django-not-configured is an error raised by pylint (with
the pylint-django plugin) when it's not correctly configured.

We should not be applying lint amnesty for such a violation.
2021-03-05 08:11:58 -05:00

8 lines
285 B
Python

# lint-amnesty, pylint: disable=missing-module-docstring
import warnings
if __name__ == 'courseware':
# Show the call stack that imported us wrong.
msg = "Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported"
warnings.warn(msg, DeprecationWarning)