Files
edx-platform/lms/djangoapps/courseware/__init__.py
Feanil Patel 9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00

11 lines
309 B
Python

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