#pylint: disable=missing-docstring
from __future__ import absolute_import

import warnings

if __name__ == 'courseware':
    warnings.warn("Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported", DeprecationWarning)

@@ -68,16 +68,31 @@
 import%0A%0A
+import inspect%0A
 import w
@@ -99,16 +99,16 @@
 arnings%0A
-
 %0Aif __na
@@ -137,22 +137,199 @@
     
-warnings.warn(
+# pylint: disable=unicode-format-string%0A    # Show the call stack that imported us wrong.%0A    stack = %22%5Cn%22.join(%22%2530s : %25s:%25d%22 %25 (t%5B3%5D, t%5B1%5D, t%5B2%5D) for t in inspect.stack()%5B:0:-1%5D)%0A    msg = 
 %22Imp
@@ -401,17 +401,50 @@
 upported
-%22
+:%5Cn%22 + stack%0A    warnings.warn(msg
 , Deprec

Add more diagnostics to the courseware import warning