From 67844cbe81995233c61b2b4df5112f7bbe1d5315 Mon Sep 17 00:00:00 2001 From: Kyle McCormick Date: Tue, 29 Sep 2020 14:25:35 -0400 Subject: [PATCH] Re-run 'sys_path_hacks/un_sys_path.sh lms' --- sys_path_hacks/lms/__init__.py | 4 ---- sys_path_hacks/lms/badges/__init__.py | 5 +++-- sys_path_hacks/lms/badges/admin.py | 5 +++-- sys_path_hacks/lms/badges/api/__init__.py | 5 +++-- sys_path_hacks/lms/badges/api/serializers.py | 5 +++-- sys_path_hacks/lms/badges/api/tests.py | 5 +++-- sys_path_hacks/lms/badges/api/urls.py | 5 +++-- sys_path_hacks/lms/badges/api/views.py | 5 +++-- sys_path_hacks/lms/badges/apps.py | 5 +++-- sys_path_hacks/lms/badges/backends/__init__.py | 5 +++-- sys_path_hacks/lms/badges/backends/badgr.py | 5 +++-- sys_path_hacks/lms/badges/backends/base.py | 5 +++-- sys_path_hacks/lms/badges/backends/tests/__init__.py | 5 +++-- sys_path_hacks/lms/badges/backends/tests/dummy_backend.py | 5 +++-- .../lms/badges/backends/tests/test_badgr_backend.py | 5 +++-- sys_path_hacks/lms/badges/events/__init__.py | 5 +++-- sys_path_hacks/lms/badges/events/course_complete.py | 5 +++-- sys_path_hacks/lms/badges/events/course_meta.py | 5 +++-- sys_path_hacks/lms/badges/events/tests/__init__.py | 5 +++-- .../lms/badges/events/tests/test_course_complete.py | 5 +++-- sys_path_hacks/lms/badges/events/tests/test_course_meta.py | 5 +++-- sys_path_hacks/lms/badges/handlers.py | 5 +++-- sys_path_hacks/lms/badges/models.py | 5 +++-- sys_path_hacks/lms/badges/service.py | 5 +++-- sys_path_hacks/lms/badges/tests/__init__.py | 5 +++-- sys_path_hacks/lms/badges/tests/factories.py | 5 +++-- sys_path_hacks/lms/badges/tests/test_models.py | 5 +++-- sys_path_hacks/lms/badges/utils.py | 5 +++-- sys_path_hacks/lms/branding/__init__.py | 5 +++-- sys_path_hacks/lms/branding/admin.py | 5 +++-- sys_path_hacks/lms/branding/api.py | 5 +++-- sys_path_hacks/lms/branding/api_urls.py | 5 +++-- sys_path_hacks/lms/branding/models.py | 5 +++-- sys_path_hacks/lms/branding/tests/__init__.py | 5 +++-- sys_path_hacks/lms/branding/tests/test_api.py | 5 +++-- sys_path_hacks/lms/branding/tests/test_models.py | 5 +++-- sys_path_hacks/lms/branding/tests/test_page.py | 5 +++-- sys_path_hacks/lms/branding/tests/test_views.py | 5 +++-- sys_path_hacks/lms/branding/views.py | 5 +++-- sys_path_hacks/lms/bulk_email/__init__.py | 5 +++-- sys_path_hacks/lms/bulk_email/admin.py | 5 +++-- sys_path_hacks/lms/bulk_email/api.py | 5 +++-- sys_path_hacks/lms/bulk_email/apps.py | 5 +++-- sys_path_hacks/lms/bulk_email/forms.py | 5 +++-- sys_path_hacks/lms/bulk_email/models.py | 5 +++-- sys_path_hacks/lms/bulk_email/models_api.py | 5 +++-- sys_path_hacks/lms/bulk_email/policies.py | 5 +++-- sys_path_hacks/lms/bulk_email/signals.py | 5 +++-- sys_path_hacks/lms/bulk_email/tasks.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/__init__.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/test_course_optout.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/test_email.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/test_err_handling.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/test_forms.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/test_models.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/test_tasks.py | 5 +++-- sys_path_hacks/lms/bulk_email/tests/test_views.py | 5 +++-- sys_path_hacks/lms/bulk_email/urls.py | 5 +++-- sys_path_hacks/lms/bulk_email/views.py | 5 +++-- sys_path_hacks/lms/bulk_enroll/__init__.py | 5 +++-- sys_path_hacks/lms/bulk_enroll/serializers.py | 5 +++-- sys_path_hacks/lms/bulk_enroll/tests/__init__.py | 5 +++-- sys_path_hacks/lms/bulk_enroll/tests/test_views.py | 5 +++-- sys_path_hacks/lms/bulk_enroll/urls.py | 5 +++-- sys_path_hacks/lms/bulk_enroll/views.py | 5 +++-- sys_path_hacks/lms/ccx/__init__.py | 5 +++-- sys_path_hacks/lms/ccx/api/__init__.py | 5 +++-- sys_path_hacks/lms/ccx/api/urls.py | 5 +++-- sys_path_hacks/lms/ccx/api/v0/__init__.py | 5 +++-- sys_path_hacks/lms/ccx/api/v0/paginators.py | 5 +++-- sys_path_hacks/lms/ccx/api/v0/serializers.py | 5 +++-- sys_path_hacks/lms/ccx/api/v0/tests/__init__.py | 5 +++-- sys_path_hacks/lms/ccx/api/v0/tests/test_views.py | 5 +++-- sys_path_hacks/lms/ccx/api/v0/urls.py | 5 +++-- sys_path_hacks/lms/ccx/api/v0/views.py | 5 +++-- sys_path_hacks/lms/ccx/custom_exception.py | 5 +++-- sys_path_hacks/lms/ccx/models.py | 5 +++-- sys_path_hacks/lms/ccx/modulestore.py | 5 +++-- sys_path_hacks/lms/ccx/overrides.py | 5 +++-- sys_path_hacks/lms/ccx/permissions.py | 5 +++-- sys_path_hacks/lms/ccx/plugins.py | 5 +++-- sys_path_hacks/lms/ccx/tasks.py | 5 +++-- sys_path_hacks/lms/ccx/tests/__init__.py | 5 +++-- sys_path_hacks/lms/ccx/tests/factories.py | 5 +++-- sys_path_hacks/lms/ccx/tests/test_ccx_modulestore.py | 5 +++-- .../lms/ccx/tests/test_field_override_performance.py | 5 +++-- sys_path_hacks/lms/ccx/tests/test_models.py | 5 +++-- sys_path_hacks/lms/ccx/tests/test_overrides.py | 5 +++-- sys_path_hacks/lms/ccx/tests/test_tasks.py | 5 +++-- sys_path_hacks/lms/ccx/tests/test_utils.py | 5 +++-- sys_path_hacks/lms/ccx/tests/test_views.py | 5 +++-- sys_path_hacks/lms/ccx/tests/utils.py | 5 +++-- sys_path_hacks/lms/ccx/urls.py | 5 +++-- sys_path_hacks/lms/ccx/utils.py | 5 +++-- sys_path_hacks/lms/ccx/views.py | 5 +++-- sys_path_hacks/lms/certificates/__init__.py | 5 +++-- sys_path_hacks/lms/certificates/admin.py | 5 +++-- sys_path_hacks/lms/certificates/api.py | 5 +++-- sys_path_hacks/lms/certificates/apis/__init__.py | 5 +++-- sys_path_hacks/lms/certificates/apis/urls.py | 5 +++-- sys_path_hacks/lms/certificates/apis/v0/__init__.py | 5 +++-- sys_path_hacks/lms/certificates/apis/v0/permissions.py | 5 +++-- sys_path_hacks/lms/certificates/apis/v0/tests/__init__.py | 5 +++-- sys_path_hacks/lms/certificates/apis/v0/tests/test_views.py | 5 +++-- sys_path_hacks/lms/certificates/apis/v0/urls.py | 5 +++-- sys_path_hacks/lms/certificates/apis/v0/views.py | 5 +++-- sys_path_hacks/lms/certificates/apps.py | 5 +++-- sys_path_hacks/lms/certificates/management/__init__.py | 5 +++-- .../lms/certificates/management/commands/__init__.py | 5 +++-- .../lms/certificates/management/commands/cert_whitelist.py | 5 +++-- .../lms/certificates/management/commands/create_fake_cert.py | 5 +++-- .../certificates/management/commands/fix_ungraded_certs.py | 5 +++-- .../lms/certificates/management/commands/gen_cert_report.py | 5 +++-- .../lms/certificates/management/commands/regenerate_user.py | 5 +++-- .../management/commands/resubmit_error_certificates.py | 5 +++-- .../lms/certificates/management/commands/tests/__init__.py | 5 +++-- .../management/commands/tests/test_cert_whitelist.py | 5 +++-- .../management/commands/tests/test_fix_ungraded_certs.py | 5 +++-- .../management/commands/tests/test_gen_cert_report.py | 5 +++-- .../certificates/management/commands/ungenerated_certs.py | 5 +++-- sys_path_hacks/lms/certificates/models.py | 5 +++-- sys_path_hacks/lms/certificates/permissions.py | 5 +++-- sys_path_hacks/lms/certificates/queue.py | 5 +++-- sys_path_hacks/lms/certificates/services.py | 5 +++-- sys_path_hacks/lms/certificates/signals.py | 5 +++-- sys_path_hacks/lms/certificates/tasks.py | 5 +++-- sys_path_hacks/lms/certificates/tests/__init__.py | 5 +++-- sys_path_hacks/lms/certificates/tests/factories.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_api.py | 5 +++-- .../lms/certificates/tests/test_cert_management.py | 5 +++-- .../lms/certificates/tests/test_create_fake_cert.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_models.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_queue.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_services.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_support_views.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_tasks.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_views.py | 5 +++-- sys_path_hacks/lms/certificates/tests/test_webview_views.py | 5 +++-- sys_path_hacks/lms/certificates/tests/tests.py | 5 +++-- sys_path_hacks/lms/certificates/urls.py | 5 +++-- sys_path_hacks/lms/certificates/views/__init__.py | 5 +++-- sys_path_hacks/lms/certificates/views/support.py | 5 +++-- sys_path_hacks/lms/certificates/views/webview.py | 5 +++-- sys_path_hacks/lms/certificates/views/xqueue.py | 5 +++-- sys_path_hacks/lms/commerce/__init__.py | 5 +++-- sys_path_hacks/lms/commerce/admin.py | 5 +++-- sys_path_hacks/lms/commerce/api/__init__.py | 5 +++-- sys_path_hacks/lms/commerce/api/urls.py | 5 +++-- sys_path_hacks/lms/commerce/api/v0/__init__.py | 5 +++-- sys_path_hacks/lms/commerce/api/v0/tests/__init__.py | 5 +++-- sys_path_hacks/lms/commerce/api/v0/tests/test_views.py | 5 +++-- sys_path_hacks/lms/commerce/api/v0/urls.py | 5 +++-- sys_path_hacks/lms/commerce/api/v0/views.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/__init__.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/models.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/permissions.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/serializers.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/tests/__init__.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/tests/test_models.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/tests/test_serializers.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/tests/test_views.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/urls.py | 5 +++-- sys_path_hacks/lms/commerce/api/v1/views.py | 5 +++-- sys_path_hacks/lms/commerce/apps.py | 5 +++-- sys_path_hacks/lms/commerce/constants.py | 5 +++-- sys_path_hacks/lms/commerce/exceptions.py | 5 +++-- sys_path_hacks/lms/commerce/http.py | 5 +++-- sys_path_hacks/lms/commerce/management/__init__.py | 5 +++-- sys_path_hacks/lms/commerce/management/commands/__init__.py | 5 +++-- .../lms/commerce/management/commands/configure_commerce.py | 5 +++-- .../create_orders_for_old_enterprise_course_enrollment.py | 5 +++-- .../lms/commerce/management/commands/tests/__init__.py | 5 +++-- .../management/commands/tests/test_configure_commerce.py | 5 +++-- ...est_create_orders_for_old_enterprise_course_enrollmnet.py | 5 +++-- sys_path_hacks/lms/commerce/models.py | 5 +++-- sys_path_hacks/lms/commerce/signals.py | 5 +++-- sys_path_hacks/lms/commerce/tests/__init__.py | 5 +++-- sys_path_hacks/lms/commerce/tests/factories.py | 5 +++-- sys_path_hacks/lms/commerce/tests/mocks.py | 5 +++-- sys_path_hacks/lms/commerce/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/commerce/tests/test_utils.py | 5 +++-- sys_path_hacks/lms/commerce/tests/test_views.py | 5 +++-- sys_path_hacks/lms/commerce/utils.py | 5 +++-- sys_path_hacks/lms/course_api/__init__.py | 5 +++-- sys_path_hacks/lms/course_api/api.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/__init__.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/api.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/forms.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/permissions.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/serializers.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/tests/__init__.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/tests/helpers.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/tests/test_api.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/tests/test_forms.py | 5 +++-- .../lms/course_api/blocks/tests/test_serializers.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/tests/test_views.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/toggles.py | 5 +++-- .../lms/course_api/blocks/transformers/__init__.py | 5 +++-- .../lms/course_api/blocks/transformers/block_completion.py | 5 +++-- .../lms/course_api/blocks/transformers/block_counts.py | 5 +++-- .../lms/course_api/blocks/transformers/block_depth.py | 5 +++-- .../lms/course_api/blocks/transformers/blocks_api.py | 5 +++-- .../lms/course_api/blocks/transformers/extra_fields.py | 5 +++-- .../lms/course_api/blocks/transformers/milestones.py | 5 +++-- .../lms/course_api/blocks/transformers/navigation.py | 5 +++-- .../lms/course_api/blocks/transformers/student_view.py | 5 +++-- .../lms/course_api/blocks/transformers/tests/__init__.py | 5 +++-- .../blocks/transformers/tests/test_block_completion.py | 5 +++-- .../blocks/transformers/tests/test_block_counts.py | 5 +++-- .../course_api/blocks/transformers/tests/test_block_depth.py | 5 +++-- .../blocks/transformers/tests/test_extra_fields.py | 5 +++-- .../course_api/blocks/transformers/tests/test_milestones.py | 5 +++-- .../course_api/blocks/transformers/tests/test_navigation.py | 5 +++-- .../blocks/transformers/tests/test_student_view.py | 5 +++-- .../course_api/blocks/transformers/tests/test_video_urls.py | 5 +++-- .../lms/course_api/blocks/transformers/video_urls.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/urls.py | 5 +++-- sys_path_hacks/lms/course_api/blocks/views.py | 5 +++-- sys_path_hacks/lms/course_api/forms.py | 5 +++-- sys_path_hacks/lms/course_api/permissions.py | 5 +++-- sys_path_hacks/lms/course_api/serializers.py | 5 +++-- sys_path_hacks/lms/course_api/tests/__init__.py | 5 +++-- sys_path_hacks/lms/course_api/tests/mixins.py | 5 +++-- sys_path_hacks/lms/course_api/tests/test_api.py | 5 +++-- sys_path_hacks/lms/course_api/tests/test_forms.py | 5 +++-- sys_path_hacks/lms/course_api/tests/test_permissions.py | 5 +++-- sys_path_hacks/lms/course_api/tests/test_serializers.py | 5 +++-- sys_path_hacks/lms/course_api/tests/test_views.py | 5 +++-- sys_path_hacks/lms/course_api/urls.py | 5 +++-- sys_path_hacks/lms/course_api/views.py | 5 +++-- sys_path_hacks/lms/course_blocks/__init__.py | 5 +++-- sys_path_hacks/lms/course_blocks/api.py | 5 +++-- sys_path_hacks/lms/course_blocks/tests/__init__.py | 5 +++-- sys_path_hacks/lms/course_blocks/transformers/__init__.py | 5 +++-- .../lms/course_blocks/transformers/access_denied_filter.py | 5 +++-- .../lms/course_blocks/transformers/hidden_content.py | 5 +++-- sys_path_hacks/lms/course_blocks/transformers/hide_empty.py | 5 +++-- .../lms/course_blocks/transformers/library_content.py | 5 +++-- .../lms/course_blocks/transformers/load_override_data.py | 5 +++-- sys_path_hacks/lms/course_blocks/transformers/split_test.py | 5 +++-- sys_path_hacks/lms/course_blocks/transformers/start_date.py | 5 +++-- .../lms/course_blocks/transformers/tests/__init__.py | 5 +++-- .../lms/course_blocks/transformers/tests/helpers.py | 5 +++-- .../course_blocks/transformers/tests/test_hidden_content.py | 5 +++-- .../course_blocks/transformers/tests/test_library_content.py | 5 +++-- .../transformers/tests/test_load_override_data.py | 5 +++-- .../lms/course_blocks/transformers/tests/test_split_test.py | 5 +++-- .../lms/course_blocks/transformers/tests/test_start_date.py | 5 +++-- .../course_blocks/transformers/tests/test_user_partitions.py | 5 +++-- .../lms/course_blocks/transformers/tests/test_visibility.py | 5 +++-- .../lms/course_blocks/transformers/user_partitions.py | 5 +++-- sys_path_hacks/lms/course_blocks/transformers/utils.py | 5 +++-- sys_path_hacks/lms/course_blocks/transformers/visibility.py | 5 +++-- sys_path_hacks/lms/course_blocks/usage_info.py | 5 +++-- sys_path_hacks/lms/course_blocks/utils.py | 5 +++-- sys_path_hacks/lms/course_goals/__init__.py | 5 +++-- sys_path_hacks/lms/course_goals/api.py | 5 +++-- sys_path_hacks/lms/course_goals/apps.py | 5 +++-- sys_path_hacks/lms/course_goals/handlers.py | 5 +++-- sys_path_hacks/lms/course_goals/models.py | 5 +++-- sys_path_hacks/lms/course_goals/tests/__init__.py | 5 +++-- sys_path_hacks/lms/course_goals/tests/test_api.py | 5 +++-- sys_path_hacks/lms/course_goals/urls.py | 5 +++-- sys_path_hacks/lms/course_goals/views.py | 5 +++-- sys_path_hacks/lms/course_home_api/__init__.py | 5 +++-- .../lms/course_home_api/course_metadata/__init__.py | 5 +++-- .../lms/course_home_api/course_metadata/v1/__init__.py | 5 +++-- .../lms/course_home_api/course_metadata/v1/serializers.py | 5 +++-- .../lms/course_home_api/course_metadata/v1/tests/__init__.py | 5 +++-- .../course_home_api/course_metadata/v1/tests/test_views.py | 5 +++-- .../lms/course_home_api/course_metadata/v1/views.py | 5 +++-- sys_path_hacks/lms/course_home_api/dates/__init__.py | 5 +++-- sys_path_hacks/lms/course_home_api/dates/v1/__init__.py | 5 +++-- sys_path_hacks/lms/course_home_api/dates/v1/serializers.py | 5 +++-- .../lms/course_home_api/dates/v1/tests/__init__.py | 5 +++-- .../lms/course_home_api/dates/v1/tests/test_views.py | 5 +++-- sys_path_hacks/lms/course_home_api/dates/v1/views.py | 5 +++-- sys_path_hacks/lms/course_home_api/mixins.py | 5 +++-- sys_path_hacks/lms/course_home_api/outline/v1/serializers.py | 5 +++-- .../lms/course_home_api/outline/v1/tests/__init__.py | 5 +++-- .../lms/course_home_api/outline/v1/tests/test_views.py | 5 +++-- sys_path_hacks/lms/course_home_api/outline/v1/views.py | 5 +++-- sys_path_hacks/lms/course_home_api/progress/v1/__init__.py | 5 +++-- .../lms/course_home_api/progress/v1/serializers.py | 5 +++-- .../lms/course_home_api/progress/v1/tests/__init__.py | 5 +++-- .../lms/course_home_api/progress/v1/tests/test_views.py | 5 +++-- sys_path_hacks/lms/course_home_api/progress/v1/views.py | 5 +++-- sys_path_hacks/lms/course_home_api/tests/__init__.py | 5 +++-- sys_path_hacks/lms/course_home_api/tests/utils.py | 5 +++-- sys_path_hacks/lms/course_home_api/toggles.py | 5 +++-- sys_path_hacks/lms/course_home_api/urls.py | 5 +++-- sys_path_hacks/lms/course_home_api/utils.py | 5 +++-- sys_path_hacks/lms/course_wiki/__init__.py | 5 +++-- sys_path_hacks/lms/course_wiki/editors.py | 5 +++-- sys_path_hacks/lms/course_wiki/middleware.py | 5 +++-- sys_path_hacks/lms/course_wiki/plugins/__init__.py | 5 +++-- .../lms/course_wiki/plugins/markdownedx/__init__.py | 5 +++-- .../lms/course_wiki/plugins/markdownedx/mdx_mathjax.py | 5 +++-- .../lms/course_wiki/plugins/markdownedx/mdx_video.py | 5 +++-- .../lms/course_wiki/plugins/markdownedx/wiki_plugin.py | 5 +++-- sys_path_hacks/lms/course_wiki/settings.py | 5 +++-- sys_path_hacks/lms/course_wiki/tab.py | 5 +++-- sys_path_hacks/lms/course_wiki/tests/__init__.py | 5 +++-- sys_path_hacks/lms/course_wiki/tests/test_access.py | 5 +++-- .../lms/course_wiki/tests/test_comprehensive_theming.py | 5 +++-- sys_path_hacks/lms/course_wiki/tests/test_middleware.py | 5 +++-- sys_path_hacks/lms/course_wiki/tests/test_tab.py | 5 +++-- sys_path_hacks/lms/course_wiki/tests/tests.py | 5 +++-- sys_path_hacks/lms/course_wiki/utils.py | 5 +++-- sys_path_hacks/lms/course_wiki/views.py | 5 +++-- sys_path_hacks/lms/courseware/__init__.py | 5 +++-- sys_path_hacks/lms/courseware/access.py | 5 +++-- sys_path_hacks/lms/courseware/access_response.py | 5 +++-- sys_path_hacks/lms/courseware/access_utils.py | 5 +++-- sys_path_hacks/lms/courseware/admin.py | 5 +++-- sys_path_hacks/lms/courseware/context_processor.py | 5 +++-- sys_path_hacks/lms/courseware/course_tools.py | 5 +++-- sys_path_hacks/lms/courseware/courses.py | 5 +++-- sys_path_hacks/lms/courseware/courseware_access_exception.py | 5 +++-- sys_path_hacks/lms/courseware/date_summary.py | 5 +++-- sys_path_hacks/lms/courseware/entrance_exams.py | 5 +++-- sys_path_hacks/lms/courseware/exceptions.py | 5 +++-- sys_path_hacks/lms/courseware/field_overrides.py | 5 +++-- sys_path_hacks/lms/courseware/fields.py | 5 +++-- sys_path_hacks/lms/courseware/management/__init__.py | 5 +++-- .../lms/courseware/management/commands/__init__.py | 5 +++-- .../lms/courseware/management/commands/clean_xml.py | 5 +++-- .../lms/courseware/management/commands/dump_course_ids.py | 5 +++-- .../courseware/management/commands/dump_course_structure.py | 5 +++-- .../lms/courseware/management/commands/tests/__init__.py | 5 +++-- .../courseware/management/commands/tests/test_dump_course.py | 5 +++-- sys_path_hacks/lms/courseware/masquerade.py | 5 +++-- sys_path_hacks/lms/courseware/middleware.py | 5 +++-- sys_path_hacks/lms/courseware/model_data.py | 5 +++-- sys_path_hacks/lms/courseware/models.py | 5 +++-- sys_path_hacks/lms/courseware/module_render.py | 5 +++-- sys_path_hacks/lms/courseware/permissions.py | 5 +++-- sys_path_hacks/lms/courseware/rules.py | 5 +++-- sys_path_hacks/lms/courseware/self_paced_overrides.py | 5 +++-- sys_path_hacks/lms/courseware/services.py | 5 +++-- sys_path_hacks/lms/courseware/student_field_overrides.py | 5 +++-- sys_path_hacks/lms/courseware/tabs.py | 5 +++-- sys_path_hacks/lms/courseware/tests/__init__.py | 5 +++-- sys_path_hacks/lms/courseware/tests/animport.py | 5 +++-- sys_path_hacks/lms/courseware/tests/factories.py | 5 +++-- sys_path_hacks/lms/courseware/tests/helpers.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_about.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_access.py | 5 +++-- .../lms/courseware/tests/test_comprehensive_theming.py | 5 +++-- .../lms/courseware/tests/test_context_processor.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_course_info.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_course_survey.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_course_tools.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_courses.py | 5 +++-- .../lms/courseware/tests/test_credit_requirements.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_date_summary.py | 5 +++-- .../lms/courseware/tests/test_discussion_xblock.py | 5 +++-- .../lms/courseware/tests/test_draft_modulestore.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_entrance_exam.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_favicon.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_field_overrides.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_footer.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_group_access.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_i18n.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_lti_integration.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_masquerade.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_middleware.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_model_data.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_module_render.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_navigation.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_rules.py | 5 +++-- .../lms/courseware/tests/test_self_paced_overrides.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_services.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_split_module.py | 5 +++-- .../lms/courseware/tests/test_submitting_problems.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_tabs.py | 5 +++-- .../lms/courseware/tests/test_user_state_client.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_video_handlers.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_video_mongo.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_video_xml.py | 5 +++-- .../lms/courseware/tests/test_view_authentication.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_views.py | 5 +++-- sys_path_hacks/lms/courseware/tests/test_word_cloud.py | 5 +++-- sys_path_hacks/lms/courseware/tests/tests.py | 5 +++-- sys_path_hacks/lms/courseware/testutils.py | 5 +++-- sys_path_hacks/lms/courseware/toggles.py | 5 +++-- sys_path_hacks/lms/courseware/transformers.py | 5 +++-- sys_path_hacks/lms/courseware/url_helpers.py | 5 +++-- sys_path_hacks/lms/courseware/user_state_client.py | 5 +++-- sys_path_hacks/lms/courseware/utils.py | 5 +++-- sys_path_hacks/lms/courseware/views/__init__.py | 5 +++-- sys_path_hacks/lms/courseware/views/index.py | 5 +++-- sys_path_hacks/lms/courseware/views/views.py | 5 +++-- sys_path_hacks/lms/coursewarehistoryextended/__init__.py | 5 +++-- sys_path_hacks/lms/coursewarehistoryextended/apps.py | 5 +++-- sys_path_hacks/lms/coursewarehistoryextended/models.py | 5 +++-- sys_path_hacks/lms/coursewarehistoryextended/tests.py | 5 +++-- sys_path_hacks/lms/dashboard/__init__.py | 5 +++-- sys_path_hacks/lms/dashboard/git_import.py | 5 +++-- sys_path_hacks/lms/dashboard/management/__init__.py | 5 +++-- sys_path_hacks/lms/dashboard/management/commands/__init__.py | 5 +++-- .../lms/dashboard/management/commands/git_add_course.py | 5 +++-- .../lms/dashboard/management/commands/tests/__init__.py | 5 +++-- .../management/commands/tests/test_git_add_course.py | 5 +++-- sys_path_hacks/lms/dashboard/models.py | 5 +++-- sys_path_hacks/lms/dashboard/sysadmin.py | 5 +++-- sys_path_hacks/lms/dashboard/sysadmin_urls.py | 5 +++-- sys_path_hacks/lms/dashboard/tests/__init__.py | 5 +++-- sys_path_hacks/lms/dashboard/tests/test_sysadmin.py | 5 +++-- sys_path_hacks/lms/debug/__init__.py | 5 +++-- sys_path_hacks/lms/debug/management/__init__.py | 5 +++-- sys_path_hacks/lms/debug/management/commands/__init__.py | 5 +++-- .../lms/debug/management/commands/dump_xml_courses.py | 5 +++-- sys_path_hacks/lms/debug/views.py | 5 +++-- sys_path_hacks/lms/discussion/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/apps.py | 5 +++-- sys_path_hacks/lms/discussion/config/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/config/settings.py | 5 +++-- .../lms/discussion/django_comment_client/__init__.py | 5 +++-- .../lms/discussion/django_comment_client/base/__init__.py | 5 +++-- .../django_comment_client/base/event_transformers.py | 5 +++-- .../lms/discussion/django_comment_client/base/tests.py | 5 +++-- .../lms/discussion/django_comment_client/base/urls.py | 5 +++-- .../lms/discussion/django_comment_client/base/views.py | 5 +++-- .../lms/discussion/django_comment_client/constants.py | 5 +++-- .../lms/discussion/django_comment_client/middleware.py | 5 +++-- .../lms/discussion/django_comment_client/models.py | 5 +++-- .../lms/discussion/django_comment_client/permissions.py | 5 +++-- .../lms/discussion/django_comment_client/settings.py | 5 +++-- .../lms/discussion/django_comment_client/tests/__init__.py | 5 +++-- .../lms/discussion/django_comment_client/tests/factories.py | 5 +++-- .../lms/discussion/django_comment_client/tests/group_id.py | 5 +++-- .../django_comment_client/tests/mock_cs_server/__init__.py | 5 +++-- .../tests/mock_cs_server/mock_cs_server.py | 5 +++-- .../tests/mock_cs_server/test_mock_cs_server.py | 5 +++-- .../django_comment_client/tests/test_middleware.py | 5 +++-- .../discussion/django_comment_client/tests/test_models.py | 5 +++-- .../lms/discussion/django_comment_client/tests/test_utils.py | 5 +++-- .../lms/discussion/django_comment_client/tests/unicode.py | 5 +++-- .../lms/discussion/django_comment_client/tests/utils.py | 5 +++-- sys_path_hacks/lms/discussion/django_comment_client/urls.py | 5 +++-- sys_path_hacks/lms/discussion/django_comment_client/utils.py | 5 +++-- sys_path_hacks/lms/discussion/exceptions.py | 5 +++-- sys_path_hacks/lms/discussion/management/__init__.py | 5 +++-- .../lms/discussion/management/commands/__init__.py | 5 +++-- .../lms/discussion/management/commands/assign_role.py | 5 +++-- .../management/commands/assign_roles_for_course.py | 5 +++-- .../management/commands/create_roles_for_existing.py | 5 +++-- .../discussion/management/commands/get_discussion_link.py | 5 +++-- .../lms/discussion/management/commands/reload_forum_users.py | 5 +++-- .../discussion/management/commands/seed_permissions_roles.py | 5 +++-- .../lms/discussion/management/commands/show_permissions.py | 5 +++-- .../lms/discussion/management/commands/sync_user_info.py | 5 +++-- sys_path_hacks/lms/discussion/notification_prefs/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/notification_prefs/tests.py | 5 +++-- sys_path_hacks/lms/discussion/notification_prefs/views.py | 5 +++-- sys_path_hacks/lms/discussion/notifier_api/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/notifier_api/serializers.py | 5 +++-- sys_path_hacks/lms/discussion/notifier_api/tests.py | 5 +++-- sys_path_hacks/lms/discussion/notifier_api/urls.py | 5 +++-- sys_path_hacks/lms/discussion/notifier_api/views.py | 5 +++-- sys_path_hacks/lms/discussion/plugins.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/api.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/exceptions.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/forms.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/pagination.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/permissions.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/render.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/serializers.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/tests/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/tests/test_api.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/tests/test_forms.py | 5 +++-- .../lms/discussion/rest_api/tests/test_pagination.py | 5 +++-- .../lms/discussion/rest_api/tests/test_permissions.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/tests/test_render.py | 5 +++-- .../lms/discussion/rest_api/tests/test_serializers.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/tests/test_views.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/tests/utils.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/urls.py | 5 +++-- sys_path_hacks/lms/discussion/rest_api/views.py | 5 +++-- sys_path_hacks/lms/discussion/settings/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/settings/common.py | 5 +++-- sys_path_hacks/lms/discussion/signals/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/signals/handlers.py | 5 +++-- sys_path_hacks/lms/discussion/tasks.py | 5 +++-- sys_path_hacks/lms/discussion/tests/__init__.py | 5 +++-- sys_path_hacks/lms/discussion/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/discussion/tests/test_tasks.py | 5 +++-- sys_path_hacks/lms/discussion/tests/test_views.py | 5 +++-- sys_path_hacks/lms/discussion/urls.py | 5 +++-- sys_path_hacks/lms/discussion/views.py | 5 +++-- sys_path_hacks/lms/edxnotes/__init__.py | 5 +++-- sys_path_hacks/lms/edxnotes/api_urls.py | 5 +++-- sys_path_hacks/lms/edxnotes/decorators.py | 5 +++-- sys_path_hacks/lms/edxnotes/exceptions.py | 5 +++-- sys_path_hacks/lms/edxnotes/helpers.py | 5 +++-- sys_path_hacks/lms/edxnotes/plugins.py | 5 +++-- sys_path_hacks/lms/edxnotes/tests.py | 5 +++-- sys_path_hacks/lms/edxnotes/urls.py | 5 +++-- sys_path_hacks/lms/edxnotes/views.py | 5 +++-- sys_path_hacks/lms/email_marketing/__init__.py | 5 +++-- sys_path_hacks/lms/email_marketing/admin.py | 5 +++-- sys_path_hacks/lms/email_marketing/apps.py | 5 +++-- sys_path_hacks/lms/email_marketing/models.py | 5 +++-- sys_path_hacks/lms/email_marketing/signals.py | 5 +++-- sys_path_hacks/lms/email_marketing/tasks.py | 5 +++-- sys_path_hacks/lms/email_marketing/tests/__init__.py | 5 +++-- sys_path_hacks/lms/email_marketing/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/experiments/__init__.py | 5 +++-- sys_path_hacks/lms/experiments/admin.py | 5 +++-- sys_path_hacks/lms/experiments/apps.py | 5 +++-- sys_path_hacks/lms/experiments/factories.py | 5 +++-- sys_path_hacks/lms/experiments/filters.py | 5 +++-- sys_path_hacks/lms/experiments/flags.py | 5 +++-- sys_path_hacks/lms/experiments/models.py | 5 +++-- sys_path_hacks/lms/experiments/permissions.py | 5 +++-- sys_path_hacks/lms/experiments/routers.py | 5 +++-- sys_path_hacks/lms/experiments/serializers.py | 5 +++-- sys_path_hacks/lms/experiments/stable_bucketing.py | 5 +++-- sys_path_hacks/lms/experiments/tests/__init__.py | 5 +++-- sys_path_hacks/lms/experiments/tests/test_flags.py | 5 +++-- sys_path_hacks/lms/experiments/tests/test_utils.py | 5 +++-- sys_path_hacks/lms/experiments/tests/test_views.py | 5 +++-- sys_path_hacks/lms/experiments/tests/test_views_custom.py | 5 +++-- sys_path_hacks/lms/experiments/urls.py | 5 +++-- sys_path_hacks/lms/experiments/utils.py | 5 +++-- sys_path_hacks/lms/experiments/views.py | 5 +++-- sys_path_hacks/lms/experiments/views_custom.py | 5 +++-- sys_path_hacks/lms/gating/__init__.py | 5 +++-- sys_path_hacks/lms/gating/api.py | 5 +++-- sys_path_hacks/lms/gating/apps.py | 5 +++-- sys_path_hacks/lms/gating/signals.py | 5 +++-- sys_path_hacks/lms/gating/tasks.py | 5 +++-- sys_path_hacks/lms/gating/tests/__init__.py | 5 +++-- sys_path_hacks/lms/gating/tests/test_api.py | 5 +++-- sys_path_hacks/lms/gating/tests/test_integration.py | 5 +++-- sys_path_hacks/lms/gating/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/grades/__init__.py | 5 +++-- sys_path_hacks/lms/grades/admin.py | 5 +++-- sys_path_hacks/lms/grades/api.py | 5 +++-- sys_path_hacks/lms/grades/apps.py | 5 +++-- sys_path_hacks/lms/grades/config/__init__.py | 5 +++-- sys_path_hacks/lms/grades/config/forms.py | 5 +++-- sys_path_hacks/lms/grades/config/models.py | 5 +++-- sys_path_hacks/lms/grades/config/tests/__init__.py | 5 +++-- sys_path_hacks/lms/grades/config/tests/test_models.py | 5 +++-- sys_path_hacks/lms/grades/config/tests/utils.py | 5 +++-- sys_path_hacks/lms/grades/config/waffle.py | 5 +++-- sys_path_hacks/lms/grades/constants.py | 5 +++-- sys_path_hacks/lms/grades/context.py | 5 +++-- sys_path_hacks/lms/grades/course_data.py | 5 +++-- sys_path_hacks/lms/grades/course_grade.py | 5 +++-- sys_path_hacks/lms/grades/course_grade_factory.py | 5 +++-- sys_path_hacks/lms/grades/events.py | 5 +++-- sys_path_hacks/lms/grades/exceptions.py | 5 +++-- sys_path_hacks/lms/grades/grade_utils.py | 5 +++-- sys_path_hacks/lms/grades/management/__init__.py | 5 +++-- sys_path_hacks/lms/grades/management/commands/__init__.py | 5 +++-- .../lms/grades/management/commands/compute_grades.py | 5 +++-- .../grades/management/commands/recalculate_learner_grades.py | 5 +++-- .../management/commands/recalculate_subsection_grades.py | 5 +++-- .../lms/grades/management/commands/tests/__init__.py | 5 +++-- .../grades/management/commands/tests/test_compute_grades.py | 5 +++-- .../commands/tests/test_recalculate_learner_grades.py | 5 +++-- .../commands/tests/test_recalculate_subsection_grades.py | 5 +++-- sys_path_hacks/lms/grades/models.py | 5 +++-- sys_path_hacks/lms/grades/models_api.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/__init__.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/serializers.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/urls.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/v1/__init__.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/v1/gradebook_views.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/v1/tests/__init__.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/v1/tests/mixins.py | 5 +++-- .../lms/grades/rest_api/v1/tests/test_gradebook_views.py | 5 +++-- .../lms/grades/rest_api/v1/tests/test_grading_policy_view.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/v1/tests/test_views.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/v1/urls.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/v1/utils.py | 5 +++-- sys_path_hacks/lms/grades/rest_api/v1/views.py | 5 +++-- sys_path_hacks/lms/grades/scores.py | 5 +++-- sys_path_hacks/lms/grades/services.py | 5 +++-- sys_path_hacks/lms/grades/settings/__init__.py | 5 +++-- sys_path_hacks/lms/grades/settings/common.py | 5 +++-- sys_path_hacks/lms/grades/settings/production.py | 5 +++-- sys_path_hacks/lms/grades/settings/test.py | 5 +++-- sys_path_hacks/lms/grades/signals/__init__.py | 5 +++-- sys_path_hacks/lms/grades/signals/handlers.py | 5 +++-- sys_path_hacks/lms/grades/signals/signals.py | 5 +++-- sys_path_hacks/lms/grades/subsection_grade.py | 5 +++-- sys_path_hacks/lms/grades/subsection_grade_factory.py | 5 +++-- sys_path_hacks/lms/grades/tasks.py | 5 +++-- sys_path_hacks/lms/grades/tests/__init__.py | 5 +++-- sys_path_hacks/lms/grades/tests/base.py | 5 +++-- sys_path_hacks/lms/grades/tests/integration/__init__.py | 5 +++-- sys_path_hacks/lms/grades/tests/integration/test_access.py | 5 +++-- sys_path_hacks/lms/grades/tests/integration/test_events.py | 5 +++-- sys_path_hacks/lms/grades/tests/integration/test_problems.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_api.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_course_data.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_course_grade.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_course_grade_factory.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_models.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_scores.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_services.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_subsection_grade.py | 5 +++-- .../lms/grades/tests/test_subsection_grade_factory.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_tasks.py | 5 +++-- sys_path_hacks/lms/grades/tests/test_transformer.py | 5 +++-- sys_path_hacks/lms/grades/tests/utils.py | 5 +++-- sys_path_hacks/lms/grades/transformer.py | 5 +++-- sys_path_hacks/lms/grades/util_services.py | 5 +++-- sys_path_hacks/lms/instructor/__init__.py | 5 +++-- sys_path_hacks/lms/instructor/access.py | 5 +++-- sys_path_hacks/lms/instructor/apps.py | 5 +++-- sys_path_hacks/lms/instructor/enrollment.py | 5 +++-- sys_path_hacks/lms/instructor/message_types.py | 5 +++-- sys_path_hacks/lms/instructor/permissions.py | 5 +++-- sys_path_hacks/lms/instructor/services.py | 5 +++-- sys_path_hacks/lms/instructor/settings/__init__.py | 5 +++-- sys_path_hacks/lms/instructor/settings/common.py | 5 +++-- sys_path_hacks/lms/instructor/settings/devstack.py | 5 +++-- sys_path_hacks/lms/instructor/settings/production.py | 5 +++-- sys_path_hacks/lms/instructor/settings/test.py | 5 +++-- sys_path_hacks/lms/instructor/tests/__init__.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_access.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_api.py | 5 +++-- .../lms/instructor/tests/test_api_email_localization.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_certificates.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_email.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_enrollment.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_proctoring.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_services.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_spoc_gradebook.py | 5 +++-- sys_path_hacks/lms/instructor/tests/test_tools.py | 5 +++-- sys_path_hacks/lms/instructor/tests/utils.py | 5 +++-- sys_path_hacks/lms/instructor/tests/views/__init__.py | 5 +++-- .../lms/instructor/tests/views/test_instructor_dashboard.py | 5 +++-- sys_path_hacks/lms/instructor/toggles.py | 5 +++++ sys_path_hacks/lms/instructor/utils.py | 5 +++-- sys_path_hacks/lms/instructor/views/__init__.py | 5 +++-- sys_path_hacks/lms/instructor/views/api.py | 5 +++-- sys_path_hacks/lms/instructor/views/api_urls.py | 5 +++-- sys_path_hacks/lms/instructor/views/gradebook_api.py | 5 +++-- sys_path_hacks/lms/instructor/views/instructor_dashboard.py | 5 +++-- .../lms/instructor/views/instructor_task_helpers.py | 5 +++-- sys_path_hacks/lms/instructor/views/tools.py | 5 +++-- sys_path_hacks/lms/instructor_analytics/__init__.py | 5 +++-- sys_path_hacks/lms/instructor_analytics/basic.py | 5 +++-- sys_path_hacks/lms/instructor_analytics/csvs.py | 5 +++-- sys_path_hacks/lms/instructor_analytics/distributions.py | 5 +++-- .../lms/instructor_analytics/management/__init__.py | 5 +++-- .../lms/instructor_analytics/management/commands/__init__.py | 5 +++-- sys_path_hacks/lms/instructor_analytics/tests/__init__.py | 5 +++-- sys_path_hacks/lms/instructor_analytics/tests/test_basic.py | 5 +++-- sys_path_hacks/lms/instructor_analytics/tests/test_csvs.py | 5 +++-- .../lms/instructor_analytics/tests/test_distributions.py | 5 +++-- sys_path_hacks/lms/instructor_task/__init__.py | 5 +++-- sys_path_hacks/lms/instructor_task/admin.py | 5 +++-- sys_path_hacks/lms/instructor_task/api.py | 5 +++-- sys_path_hacks/lms/instructor_task/api_helper.py | 5 +++-- sys_path_hacks/lms/instructor_task/config/__init__.py | 5 +++-- sys_path_hacks/lms/instructor_task/config/models.py | 5 +++-- sys_path_hacks/lms/instructor_task/config/waffle.py | 5 +++-- sys_path_hacks/lms/instructor_task/exceptions.py | 5 +++-- sys_path_hacks/lms/instructor_task/management/__init__.py | 5 +++-- .../lms/instructor_task/management/commands/__init__.py | 5 +++-- .../instructor_task/management/commands/fail_old_tasks.py | 5 +++-- .../instructor_task/management/commands/tests/__init__.py | 5 +++-- .../management/commands/tests/test_fail_old_tasks.py | 5 +++-- sys_path_hacks/lms/instructor_task/models.py | 5 +++-- sys_path_hacks/lms/instructor_task/subtasks.py | 5 +++-- sys_path_hacks/lms/instructor_task/tasks.py | 5 +++-- sys_path_hacks/lms/instructor_task/tasks_base.py | 5 +++-- sys_path_hacks/lms/instructor_task/tasks_helper/__init__.py | 5 +++-- sys_path_hacks/lms/instructor_task/tasks_helper/certs.py | 5 +++-- .../lms/instructor_task/tasks_helper/enrollments.py | 5 +++-- sys_path_hacks/lms/instructor_task/tasks_helper/grades.py | 5 +++-- sys_path_hacks/lms/instructor_task/tasks_helper/misc.py | 5 +++-- .../lms/instructor_task/tasks_helper/module_state.py | 5 +++-- sys_path_hacks/lms/instructor_task/tasks_helper/runner.py | 5 +++-- sys_path_hacks/lms/instructor_task/tasks_helper/utils.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/__init__.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/factories.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/test_api.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/test_base.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/test_integration.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/test_models.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/test_subtasks.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/test_tasks.py | 5 +++-- .../lms/instructor_task/tests/test_tasks_helper.py | 5 +++-- sys_path_hacks/lms/instructor_task/tests/test_views.py | 5 +++-- sys_path_hacks/lms/instructor_task/views.py | 5 +++-- sys_path_hacks/lms/learner_dashboard/__init__.py | 5 +++-- sys_path_hacks/lms/learner_dashboard/programs.py | 5 +++-- sys_path_hacks/lms/learner_dashboard/tests/__init__.py | 5 +++-- sys_path_hacks/lms/learner_dashboard/tests/test_programs.py | 5 +++-- sys_path_hacks/lms/learner_dashboard/tests/test_utils.py | 5 +++-- sys_path_hacks/lms/learner_dashboard/urls.py | 5 +++-- sys_path_hacks/lms/learner_dashboard/utils.py | 5 +++-- sys_path_hacks/lms/learner_dashboard/views.py | 5 +++-- sys_path_hacks/lms/lms_initialization/__init__.py | 5 +++-- sys_path_hacks/lms/lms_initialization/apps.py | 5 +++-- sys_path_hacks/lms/lms_xblock/__init__.py | 5 +++-- sys_path_hacks/lms/lms_xblock/admin.py | 5 +++-- sys_path_hacks/lms/lms_xblock/apps.py | 5 +++-- sys_path_hacks/lms/lms_xblock/field_data.py | 5 +++-- sys_path_hacks/lms/lms_xblock/mixin.py | 5 +++-- sys_path_hacks/lms/lms_xblock/models.py | 5 +++-- sys_path_hacks/lms/lms_xblock/runtime.py | 5 +++-- sys_path_hacks/lms/lms_xblock/test/__init__.py | 5 +++-- sys_path_hacks/lms/lms_xblock/test/test_runtime.py | 5 +++-- sys_path_hacks/lms/lti_provider/__init__.py | 5 +++-- sys_path_hacks/lms/lti_provider/admin.py | 5 +++-- sys_path_hacks/lms/lti_provider/apps.py | 5 +++-- sys_path_hacks/lms/lti_provider/management/__init__.py | 5 +++-- .../lms/lti_provider/management/commands/__init__.py | 5 +++-- .../lti_provider/management/commands/resend_lti_scores.py | 5 +++-- .../lms/lti_provider/management/commands/tests/__init__.py | 5 +++-- .../management/commands/tests/test_resend_lti_scores.py | 5 +++-- sys_path_hacks/lms/lti_provider/models.py | 5 +++-- sys_path_hacks/lms/lti_provider/outcomes.py | 5 +++-- sys_path_hacks/lms/lti_provider/signals.py | 5 +++-- sys_path_hacks/lms/lti_provider/signature_validator.py | 5 +++-- sys_path_hacks/lms/lti_provider/tasks.py | 5 +++-- sys_path_hacks/lms/lti_provider/tests/__init__.py | 5 +++-- sys_path_hacks/lms/lti_provider/tests/test_outcomes.py | 5 +++-- .../lms/lti_provider/tests/test_signature_validator.py | 5 +++-- sys_path_hacks/lms/lti_provider/tests/test_tasks.py | 5 +++-- sys_path_hacks/lms/lti_provider/tests/test_users.py | 5 +++-- sys_path_hacks/lms/lti_provider/tests/test_views.py | 5 +++-- sys_path_hacks/lms/lti_provider/urls.py | 5 +++-- sys_path_hacks/lms/lti_provider/users.py | 5 +++-- sys_path_hacks/lms/lti_provider/views.py | 5 +++-- sys_path_hacks/lms/mailing/__init__.py | 5 +++-- sys_path_hacks/lms/mailing/management/__init__.py | 5 +++-- sys_path_hacks/lms/mailing/management/commands/__init__.py | 5 +++-- .../lms/mailing/management/commands/mailchimp_id.py | 5 +++-- .../management/commands/mailchimp_sync_announcements.py | 5 +++-- .../lms/mailing/management/commands/mailchimp_sync_course.py | 5 +++-- sys_path_hacks/lms/mobile_api/__init__.py | 5 +++-- sys_path_hacks/lms/mobile_api/admin.py | 5 +++-- sys_path_hacks/lms/mobile_api/context_processor.py | 5 +++-- sys_path_hacks/lms/mobile_api/course_info/__init__.py | 5 +++-- sys_path_hacks/lms/mobile_api/course_info/models.py | 5 +++-- sys_path_hacks/lms/mobile_api/course_info/tests.py | 5 +++-- sys_path_hacks/lms/mobile_api/course_info/urls.py | 5 +++-- sys_path_hacks/lms/mobile_api/course_info/views.py | 5 +++-- sys_path_hacks/lms/mobile_api/decorators.py | 5 +++-- sys_path_hacks/lms/mobile_api/errors.py | 5 +++-- sys_path_hacks/lms/mobile_api/middleware.py | 5 +++-- sys_path_hacks/lms/mobile_api/mobile_platform.py | 5 +++-- sys_path_hacks/lms/mobile_api/models.py | 5 +++-- sys_path_hacks/lms/mobile_api/tests/__init__.py | 5 +++-- .../lms/mobile_api/tests/test_context_processor.py | 5 +++-- sys_path_hacks/lms/mobile_api/tests/test_decorator.py | 5 +++-- sys_path_hacks/lms/mobile_api/tests/test_middleware.py | 5 +++-- sys_path_hacks/lms/mobile_api/tests/test_milestones.py | 5 +++-- sys_path_hacks/lms/mobile_api/tests/test_mobile_platform.py | 5 +++-- sys_path_hacks/lms/mobile_api/tests/test_model.py | 5 +++-- sys_path_hacks/lms/mobile_api/testutils.py | 5 +++-- sys_path_hacks/lms/mobile_api/urls.py | 5 +++-- sys_path_hacks/lms/mobile_api/users/__init__.py | 5 +++-- sys_path_hacks/lms/mobile_api/users/serializers.py | 5 +++-- sys_path_hacks/lms/mobile_api/users/tests.py | 5 +++-- sys_path_hacks/lms/mobile_api/users/urls.py | 5 +++-- sys_path_hacks/lms/mobile_api/users/views.py | 5 +++-- sys_path_hacks/lms/mobile_api/utils.py | 5 +++-- sys_path_hacks/lms/monitoring/__init__.py | 5 +++-- .../lms/monitoring/scripts/clean_unmapped_view_modules.py | 5 +++-- .../lms/monitoring/scripts/generate_code_owner_mappings.py | 5 +++-- sys_path_hacks/lms/program_enrollments/__init__.py | 5 +++-- sys_path_hacks/lms/program_enrollments/admin.py | 5 +++-- sys_path_hacks/lms/program_enrollments/api/__init__.py | 5 +++-- sys_path_hacks/lms/program_enrollments/api/grades.py | 5 +++-- sys_path_hacks/lms/program_enrollments/api/linking.py | 5 +++-- sys_path_hacks/lms/program_enrollments/api/reading.py | 5 +++-- sys_path_hacks/lms/program_enrollments/api/tests/__init__.py | 5 +++-- .../lms/program_enrollments/api/tests/test_grades.py | 5 +++-- .../lms/program_enrollments/api/tests/test_linking.py | 5 +++-- .../lms/program_enrollments/api/tests/test_reading.py | 5 +++-- .../lms/program_enrollments/api/tests/test_writing.py | 5 +++-- sys_path_hacks/lms/program_enrollments/api/writing.py | 5 +++-- sys_path_hacks/lms/program_enrollments/apps.py | 5 +++-- sys_path_hacks/lms/program_enrollments/constants.py | 5 +++-- sys_path_hacks/lms/program_enrollments/exceptions.py | 5 +++-- .../lms/program_enrollments/management/__init__.py | 5 +++-- .../lms/program_enrollments/management/commands/__init__.py | 5 +++-- .../management/commands/expire_waiting_enrollments.py | 5 +++-- .../management/commands/link_program_enrollments.py | 5 +++-- .../management/commands/migrate_saml_uids.py | 5 +++-- .../management/commands/reset_enrollment_data.py | 5 +++-- .../management/commands/tests/__init__.py | 5 +++-- .../commands/tests/test_expire_waiting_enrollments.py | 5 +++-- .../commands/tests/test_link_program_enrollments.py | 5 +++-- .../management/commands/tests/test_migrate_saml_uids.py | 5 +++-- .../management/commands/tests/test_reset_enrollment_data.py | 5 +++-- .../program_enrollments/management/commands/tests/utils.py | 5 +++-- sys_path_hacks/lms/program_enrollments/models.py | 5 +++-- sys_path_hacks/lms/program_enrollments/rest_api/__init__.py | 5 +++-- sys_path_hacks/lms/program_enrollments/rest_api/urls.py | 5 +++-- .../lms/program_enrollments/rest_api/v1/__init__.py | 5 +++-- .../lms/program_enrollments/rest_api/v1/constants.py | 5 +++-- .../lms/program_enrollments/rest_api/v1/serializers.py | 5 +++-- .../lms/program_enrollments/rest_api/v1/tests/__init__.py | 5 +++-- .../lms/program_enrollments/rest_api/v1/tests/test_views.py | 5 +++-- sys_path_hacks/lms/program_enrollments/rest_api/v1/urls.py | 5 +++-- sys_path_hacks/lms/program_enrollments/rest_api/v1/utils.py | 5 +++-- sys_path_hacks/lms/program_enrollments/rest_api/v1/views.py | 5 +++-- sys_path_hacks/lms/program_enrollments/signals.py | 5 +++-- sys_path_hacks/lms/program_enrollments/tasks.py | 5 +++-- sys_path_hacks/lms/program_enrollments/tests/__init__.py | 5 +++-- sys_path_hacks/lms/program_enrollments/tests/factories.py | 5 +++-- sys_path_hacks/lms/program_enrollments/tests/test_admin.py | 5 +++-- sys_path_hacks/lms/program_enrollments/tests/test_models.py | 5 +++-- sys_path_hacks/lms/program_enrollments/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/program_enrollments/tests/test_tasks.py | 5 +++-- sys_path_hacks/lms/rss_proxy/__init__.py | 5 +++-- sys_path_hacks/lms/rss_proxy/admin.py | 5 +++-- sys_path_hacks/lms/rss_proxy/models.py | 5 +++-- sys_path_hacks/lms/rss_proxy/tests/__init__.py | 5 +++-- sys_path_hacks/lms/rss_proxy/tests/test_models.py | 5 +++-- sys_path_hacks/lms/rss_proxy/tests/test_views.py | 5 +++-- sys_path_hacks/lms/rss_proxy/urls.py | 5 +++-- sys_path_hacks/lms/rss_proxy/views.py | 5 +++-- sys_path_hacks/lms/shoppingcart/__init__.py | 5 +++-- sys_path_hacks/lms/shoppingcart/admin.py | 5 +++-- sys_path_hacks/lms/shoppingcart/api.py | 5 +++-- sys_path_hacks/lms/shoppingcart/context_processor.py | 5 +++-- sys_path_hacks/lms/shoppingcart/decorators.py | 5 +++-- sys_path_hacks/lms/shoppingcart/exceptions.py | 5 +++-- sys_path_hacks/lms/shoppingcart/management/__init__.py | 5 +++-- .../lms/shoppingcart/management/commands/__init__.py | 5 +++-- .../lms/shoppingcart/management/commands/retire_order.py | 5 +++-- sys_path_hacks/lms/shoppingcart/management/tests/__init__.py | 5 +++-- .../lms/shoppingcart/management/tests/test_retire_order.py | 5 +++-- sys_path_hacks/lms/shoppingcart/models.py | 5 +++-- sys_path_hacks/lms/shoppingcart/processors/CyberSource2.py | 5 +++-- sys_path_hacks/lms/shoppingcart/processors/__init__.py | 5 +++-- sys_path_hacks/lms/shoppingcart/processors/exceptions.py | 5 +++-- sys_path_hacks/lms/shoppingcart/processors/helpers.py | 5 +++-- sys_path_hacks/lms/shoppingcart/processors/tests/__init__.py | 5 +++-- .../lms/shoppingcart/processors/tests/test_CyberSource2.py | 5 +++-- sys_path_hacks/lms/shoppingcart/reports.py | 5 +++-- sys_path_hacks/lms/shoppingcart/tests/__init__.py | 5 +++-- sys_path_hacks/lms/shoppingcart/tests/payment_fake.py | 5 +++-- .../lms/shoppingcart/tests/test_context_processor.py | 5 +++-- sys_path_hacks/lms/shoppingcart/tests/test_models.py | 5 +++-- sys_path_hacks/lms/shoppingcart/tests/test_payment_fake.py | 5 +++-- sys_path_hacks/lms/shoppingcart/tests/test_reports.py | 5 +++-- sys_path_hacks/lms/shoppingcart/tests/test_views.py | 5 +++-- sys_path_hacks/lms/shoppingcart/urls.py | 5 +++-- sys_path_hacks/lms/shoppingcart/utils.py | 5 +++-- sys_path_hacks/lms/shoppingcart/views.py | 5 +++-- sys_path_hacks/lms/static_template_view/__init__.py | 5 +++-- sys_path_hacks/lms/static_template_view/tests/__init__.py | 5 +++-- sys_path_hacks/lms/static_template_view/tests/test_views.py | 5 +++-- sys_path_hacks/lms/static_template_view/urls.py | 5 +++-- sys_path_hacks/lms/static_template_view/views.py | 5 +++-- sys_path_hacks/lms/staticbook/__init__.py | 5 +++-- sys_path_hacks/lms/staticbook/tests.py | 5 +++-- sys_path_hacks/lms/staticbook/views.py | 5 +++-- sys_path_hacks/lms/support/__init__.py | 5 +++-- sys_path_hacks/lms/support/decorators.py | 5 +++-- sys_path_hacks/lms/support/serializers.py | 5 +++-- sys_path_hacks/lms/support/tests/__init__.py | 5 +++-- sys_path_hacks/lms/support/tests/test_views.py | 5 +++-- sys_path_hacks/lms/support/urls.py | 5 +++-- sys_path_hacks/lms/support/views/__init__.py | 5 +++-- sys_path_hacks/lms/support/views/certificate.py | 5 +++-- sys_path_hacks/lms/support/views/contact_us.py | 5 +++-- sys_path_hacks/lms/support/views/course_entitlements.py | 5 +++-- sys_path_hacks/lms/support/views/enrollments.py | 5 +++-- .../lms/support/views/feature_based_enrollments.py | 5 +++-- sys_path_hacks/lms/support/views/index.py | 5 +++-- sys_path_hacks/lms/support/views/manage_user.py | 5 +++-- sys_path_hacks/lms/support/views/program_enrollments.py | 5 +++-- sys_path_hacks/lms/support/views/sso_records.py | 5 +++-- sys_path_hacks/lms/survey/__init__.py | 5 +++-- sys_path_hacks/lms/survey/admin.py | 5 +++-- sys_path_hacks/lms/survey/apps.py | 5 +++-- sys_path_hacks/lms/survey/exceptions.py | 5 +++-- sys_path_hacks/lms/survey/models.py | 5 +++-- sys_path_hacks/lms/survey/signals.py | 5 +++-- sys_path_hacks/lms/survey/tests/__init__.py | 5 +++-- sys_path_hacks/lms/survey/tests/factories.py | 5 +++-- sys_path_hacks/lms/survey/tests/test_models.py | 5 +++-- sys_path_hacks/lms/survey/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/survey/tests/test_utils.py | 5 +++-- sys_path_hacks/lms/survey/tests/test_views.py | 5 +++-- sys_path_hacks/lms/survey/urls.py | 5 +++-- sys_path_hacks/lms/survey/utils.py | 5 +++-- sys_path_hacks/lms/survey/views.py | 5 +++-- sys_path_hacks/lms/teams/__init__.py | 5 +++-- sys_path_hacks/lms/teams/admin.py | 5 +++-- sys_path_hacks/lms/teams/api.py | 5 +++-- sys_path_hacks/lms/teams/api_urls.py | 5 +++-- sys_path_hacks/lms/teams/csv.py | 5 +++-- sys_path_hacks/lms/teams/errors.py | 5 +++-- sys_path_hacks/lms/teams/management/__init__.py | 5 +++-- sys_path_hacks/lms/teams/management/commands/__init__.py | 5 +++-- .../lms/teams/management/commands/reindex_course_team.py | 5 +++-- .../lms/teams/management/commands/tests/__init__.py | 5 +++-- .../management/commands/tests/test_reindex_course_team.py | 5 +++-- sys_path_hacks/lms/teams/models.py | 5 +++-- sys_path_hacks/lms/teams/plugins.py | 5 +++-- sys_path_hacks/lms/teams/search_indexes.py | 5 +++-- sys_path_hacks/lms/teams/serializers.py | 5 +++-- sys_path_hacks/lms/teams/services.py | 5 +++-- sys_path_hacks/lms/teams/tests/__init__.py | 5 +++-- sys_path_hacks/lms/teams/tests/factories.py | 5 +++-- sys_path_hacks/lms/teams/tests/test_api.py | 5 +++-- sys_path_hacks/lms/teams/tests/test_csv.py | 5 +++-- sys_path_hacks/lms/teams/tests/test_models.py | 5 +++-- sys_path_hacks/lms/teams/tests/test_serializers.py | 5 +++-- sys_path_hacks/lms/teams/tests/test_services.py | 5 +++-- sys_path_hacks/lms/teams/tests/test_views.py | 5 +++-- sys_path_hacks/lms/teams/urls.py | 5 +++-- sys_path_hacks/lms/teams/utils.py | 5 +++-- sys_path_hacks/lms/teams/views.py | 5 +++-- sys_path_hacks/lms/teams/waffle.py | 5 +++-- sys_path_hacks/lms/tests/__init__.py | 5 +++-- sys_path_hacks/lms/tests/test_utils.py | 5 +++-- sys_path_hacks/lms/utils.py | 5 +++-- sys_path_hacks/lms/verify_student/__init__.py | 5 +++-- sys_path_hacks/lms/verify_student/admin.py | 5 +++-- sys_path_hacks/lms/verify_student/api.py | 5 +++-- sys_path_hacks/lms/verify_student/apps.py | 5 +++-- sys_path_hacks/lms/verify_student/emails.py | 5 +++-- sys_path_hacks/lms/verify_student/exceptions.py | 5 +++-- sys_path_hacks/lms/verify_student/image.py | 5 +++-- sys_path_hacks/lms/verify_student/management/__init__.py | 5 +++-- .../lms/verify_student/management/commands/__init__.py | 5 +++-- .../backfill_sso_verifications_for_old_account_links.py | 5 +++-- .../management/commands/manual_verifications.py | 5 +++-- .../management/commands/populate_expiry_date.py | 5 +++-- .../management/commands/retry_failed_photo_verifications.py | 5 +++-- .../management/commands/send_verification_expiry_email.py | 5 +++-- .../lms/verify_student/management/commands/tests/__init__.py | 5 +++-- .../test_backfill_sso_verifications_for_old_account_links.py | 5 +++-- .../management/commands/tests/test_manual_verify_student.py | 5 +++-- .../management/commands/tests/test_populate_expiry_date.py | 5 +++-- .../commands/tests/test_send_verification_expiry_email.py | 5 +++-- .../management/commands/tests/test_verify_student.py | 5 +++-- sys_path_hacks/lms/verify_student/message_types.py | 5 +++-- sys_path_hacks/lms/verify_student/models.py | 5 +++-- sys_path_hacks/lms/verify_student/services.py | 5 +++-- sys_path_hacks/lms/verify_student/signals.py | 5 +++-- sys_path_hacks/lms/verify_student/ssencrypt.py | 5 +++-- sys_path_hacks/lms/verify_student/tasks.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/__init__.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/factories.py | 5 +++-- .../lms/verify_student/tests/fake_software_secure.py | 5 +++-- .../lms/verify_student/tests/test_fake_software_secure.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/test_integration.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/test_models.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/test_services.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/test_signals.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/test_ssencrypt.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/test_tasks.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/test_utils.py | 5 +++-- sys_path_hacks/lms/verify_student/tests/test_views.py | 5 +++-- sys_path_hacks/lms/verify_student/toggles.py | 5 +++-- sys_path_hacks/lms/verify_student/urls.py | 5 +++-- sys_path_hacks/lms/verify_student/utils.py | 5 +++-- sys_path_hacks/lms/verify_student/views.py | 5 +++-- 970 files changed, 2909 insertions(+), 1940 deletions(-) delete mode 100644 sys_path_hacks/lms/__init__.py create mode 100644 sys_path_hacks/lms/instructor/toggles.py diff --git a/sys_path_hacks/lms/__init__.py b/sys_path_hacks/lms/__init__.py deleted file mode 100644 index 73a2a35cee..0000000000 --- a/sys_path_hacks/lms/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -import warnings -warnings.warn("Importing lms.djangoapps instead of lms.djangoapps is deprecated", stacklevel=2) - -from lms.djangoapps import * diff --git a/sys_path_hacks/lms/badges/__init__.py b/sys_path_hacks/lms/badges/__init__.py index a2a9364d62..580a0fec19 100644 --- a/sys_path_hacks/lms/badges/__init__.py +++ b/sys_path_hacks/lms/badges/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges instead of lms.djangoapps.badges is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges') from lms.djangoapps.badges import * diff --git a/sys_path_hacks/lms/badges/admin.py b/sys_path_hacks/lms/badges/admin.py index 353e5e6612..714c3842c0 100644 --- a/sys_path_hacks/lms/badges/admin.py +++ b/sys_path_hacks/lms/badges/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.admin instead of lms.djangoapps.badges.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.admin') from lms.djangoapps.badges.admin import * diff --git a/sys_path_hacks/lms/badges/api/__init__.py b/sys_path_hacks/lms/badges/api/__init__.py index af4ed18cc9..4ba108bd87 100644 --- a/sys_path_hacks/lms/badges/api/__init__.py +++ b/sys_path_hacks/lms/badges/api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.api instead of lms.djangoapps.badges.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.api') from lms.djangoapps.badges.api import * diff --git a/sys_path_hacks/lms/badges/api/serializers.py b/sys_path_hacks/lms/badges/api/serializers.py index 06dff2b909..0a200e8ba4 100644 --- a/sys_path_hacks/lms/badges/api/serializers.py +++ b/sys_path_hacks/lms/badges/api/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.api.serializers instead of lms.djangoapps.badges.api.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.api.serializers') from lms.djangoapps.badges.api.serializers import * diff --git a/sys_path_hacks/lms/badges/api/tests.py b/sys_path_hacks/lms/badges/api/tests.py index e1d1f98a5f..00641dc575 100644 --- a/sys_path_hacks/lms/badges/api/tests.py +++ b/sys_path_hacks/lms/badges/api/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.api.tests instead of lms.djangoapps.badges.api.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.api.tests') from lms.djangoapps.badges.api.tests import * diff --git a/sys_path_hacks/lms/badges/api/urls.py b/sys_path_hacks/lms/badges/api/urls.py index e4ee15e1f9..8a8e6cfc92 100644 --- a/sys_path_hacks/lms/badges/api/urls.py +++ b/sys_path_hacks/lms/badges/api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.api.urls instead of lms.djangoapps.badges.api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.api.urls') from lms.djangoapps.badges.api.urls import * diff --git a/sys_path_hacks/lms/badges/api/views.py b/sys_path_hacks/lms/badges/api/views.py index 88b8e43fed..61f678af65 100644 --- a/sys_path_hacks/lms/badges/api/views.py +++ b/sys_path_hacks/lms/badges/api/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.api.views instead of lms.djangoapps.badges.api.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.api.views') from lms.djangoapps.badges.api.views import * diff --git a/sys_path_hacks/lms/badges/apps.py b/sys_path_hacks/lms/badges/apps.py index ac8cb86881..c03ec86102 100644 --- a/sys_path_hacks/lms/badges/apps.py +++ b/sys_path_hacks/lms/badges/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.apps instead of lms.djangoapps.badges.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.apps') from lms.djangoapps.badges.apps import * diff --git a/sys_path_hacks/lms/badges/backends/__init__.py b/sys_path_hacks/lms/badges/backends/__init__.py index cf9dd53404..e7d52ea70f 100644 --- a/sys_path_hacks/lms/badges/backends/__init__.py +++ b/sys_path_hacks/lms/badges/backends/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.backends instead of lms.djangoapps.badges.backends is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.backends') from lms.djangoapps.badges.backends import * diff --git a/sys_path_hacks/lms/badges/backends/badgr.py b/sys_path_hacks/lms/badges/backends/badgr.py index 1a68b789ed..7566c233c7 100644 --- a/sys_path_hacks/lms/badges/backends/badgr.py +++ b/sys_path_hacks/lms/badges/backends/badgr.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.backends.badgr instead of lms.djangoapps.badges.backends.badgr is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.backends.badgr') from lms.djangoapps.badges.backends.badgr import * diff --git a/sys_path_hacks/lms/badges/backends/base.py b/sys_path_hacks/lms/badges/backends/base.py index d1169a5124..f640cd991b 100644 --- a/sys_path_hacks/lms/badges/backends/base.py +++ b/sys_path_hacks/lms/badges/backends/base.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.backends.base instead of lms.djangoapps.badges.backends.base is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.backends.base') from lms.djangoapps.badges.backends.base import * diff --git a/sys_path_hacks/lms/badges/backends/tests/__init__.py b/sys_path_hacks/lms/badges/backends/tests/__init__.py index c49ced64b1..5353856f24 100644 --- a/sys_path_hacks/lms/badges/backends/tests/__init__.py +++ b/sys_path_hacks/lms/badges/backends/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.backends.tests instead of lms.djangoapps.badges.backends.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.backends.tests') from lms.djangoapps.badges.backends.tests import * diff --git a/sys_path_hacks/lms/badges/backends/tests/dummy_backend.py b/sys_path_hacks/lms/badges/backends/tests/dummy_backend.py index 5b85781e22..774bdfdf8d 100644 --- a/sys_path_hacks/lms/badges/backends/tests/dummy_backend.py +++ b/sys_path_hacks/lms/badges/backends/tests/dummy_backend.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.backends.tests.dummy_backend instead of lms.djangoapps.badges.backends.tests.dummy_backend is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.backends.tests.dummy_backend') from lms.djangoapps.badges.backends.tests.dummy_backend import * diff --git a/sys_path_hacks/lms/badges/backends/tests/test_badgr_backend.py b/sys_path_hacks/lms/badges/backends/tests/test_badgr_backend.py index a58a374793..ca6d98923a 100644 --- a/sys_path_hacks/lms/badges/backends/tests/test_badgr_backend.py +++ b/sys_path_hacks/lms/badges/backends/tests/test_badgr_backend.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.backends.tests.test_badgr_backend instead of lms.djangoapps.badges.backends.tests.test_badgr_backend is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.backends.tests.test_badgr_backend') from lms.djangoapps.badges.backends.tests.test_badgr_backend import * diff --git a/sys_path_hacks/lms/badges/events/__init__.py b/sys_path_hacks/lms/badges/events/__init__.py index ea4b5a9230..435d36cd62 100644 --- a/sys_path_hacks/lms/badges/events/__init__.py +++ b/sys_path_hacks/lms/badges/events/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.events instead of lms.djangoapps.badges.events is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.events') from lms.djangoapps.badges.events import * diff --git a/sys_path_hacks/lms/badges/events/course_complete.py b/sys_path_hacks/lms/badges/events/course_complete.py index f83f337e45..d747665133 100644 --- a/sys_path_hacks/lms/badges/events/course_complete.py +++ b/sys_path_hacks/lms/badges/events/course_complete.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.events.course_complete instead of lms.djangoapps.badges.events.course_complete is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.events.course_complete') from lms.djangoapps.badges.events.course_complete import * diff --git a/sys_path_hacks/lms/badges/events/course_meta.py b/sys_path_hacks/lms/badges/events/course_meta.py index e0341afa93..12ce11e19f 100644 --- a/sys_path_hacks/lms/badges/events/course_meta.py +++ b/sys_path_hacks/lms/badges/events/course_meta.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.events.course_meta instead of lms.djangoapps.badges.events.course_meta is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.events.course_meta') from lms.djangoapps.badges.events.course_meta import * diff --git a/sys_path_hacks/lms/badges/events/tests/__init__.py b/sys_path_hacks/lms/badges/events/tests/__init__.py index 0caacbf938..c82e94f885 100644 --- a/sys_path_hacks/lms/badges/events/tests/__init__.py +++ b/sys_path_hacks/lms/badges/events/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.events.tests instead of lms.djangoapps.badges.events.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.events.tests') from lms.djangoapps.badges.events.tests import * diff --git a/sys_path_hacks/lms/badges/events/tests/test_course_complete.py b/sys_path_hacks/lms/badges/events/tests/test_course_complete.py index e19b79ac38..edd8b9403f 100644 --- a/sys_path_hacks/lms/badges/events/tests/test_course_complete.py +++ b/sys_path_hacks/lms/badges/events/tests/test_course_complete.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.events.tests.test_course_complete instead of lms.djangoapps.badges.events.tests.test_course_complete is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.events.tests.test_course_complete') from lms.djangoapps.badges.events.tests.test_course_complete import * diff --git a/sys_path_hacks/lms/badges/events/tests/test_course_meta.py b/sys_path_hacks/lms/badges/events/tests/test_course_meta.py index b6ae1fb0f1..fef6690913 100644 --- a/sys_path_hacks/lms/badges/events/tests/test_course_meta.py +++ b/sys_path_hacks/lms/badges/events/tests/test_course_meta.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.events.tests.test_course_meta instead of lms.djangoapps.badges.events.tests.test_course_meta is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.events.tests.test_course_meta') from lms.djangoapps.badges.events.tests.test_course_meta import * diff --git a/sys_path_hacks/lms/badges/handlers.py b/sys_path_hacks/lms/badges/handlers.py index ffb89521c2..dd347aab41 100644 --- a/sys_path_hacks/lms/badges/handlers.py +++ b/sys_path_hacks/lms/badges/handlers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.handlers instead of lms.djangoapps.badges.handlers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.handlers') from lms.djangoapps.badges.handlers import * diff --git a/sys_path_hacks/lms/badges/models.py b/sys_path_hacks/lms/badges/models.py index 945261125f..c946d7dd76 100644 --- a/sys_path_hacks/lms/badges/models.py +++ b/sys_path_hacks/lms/badges/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.models instead of lms.djangoapps.badges.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.models') from lms.djangoapps.badges.models import * diff --git a/sys_path_hacks/lms/badges/service.py b/sys_path_hacks/lms/badges/service.py index aca9bb5466..15e9890076 100644 --- a/sys_path_hacks/lms/badges/service.py +++ b/sys_path_hacks/lms/badges/service.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.service instead of lms.djangoapps.badges.service is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.service') from lms.djangoapps.badges.service import * diff --git a/sys_path_hacks/lms/badges/tests/__init__.py b/sys_path_hacks/lms/badges/tests/__init__.py index f3bd09517e..5c010d209c 100644 --- a/sys_path_hacks/lms/badges/tests/__init__.py +++ b/sys_path_hacks/lms/badges/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.tests instead of lms.djangoapps.badges.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.tests') from lms.djangoapps.badges.tests import * diff --git a/sys_path_hacks/lms/badges/tests/factories.py b/sys_path_hacks/lms/badges/tests/factories.py index b9637f8477..b1fc500fd8 100644 --- a/sys_path_hacks/lms/badges/tests/factories.py +++ b/sys_path_hacks/lms/badges/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.tests.factories instead of lms.djangoapps.badges.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.tests.factories') from lms.djangoapps.badges.tests.factories import * diff --git a/sys_path_hacks/lms/badges/tests/test_models.py b/sys_path_hacks/lms/badges/tests/test_models.py index 8eaa7bdff8..a8e4b0ee7e 100644 --- a/sys_path_hacks/lms/badges/tests/test_models.py +++ b/sys_path_hacks/lms/badges/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.tests.test_models instead of lms.djangoapps.badges.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.tests.test_models') from lms.djangoapps.badges.tests.test_models import * diff --git a/sys_path_hacks/lms/badges/utils.py b/sys_path_hacks/lms/badges/utils.py index d71c151c4f..bbef0d5c45 100644 --- a/sys_path_hacks/lms/badges/utils.py +++ b/sys_path_hacks/lms/badges/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing badges.utils instead of lms.djangoapps.badges.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'badges.utils') from lms.djangoapps.badges.utils import * diff --git a/sys_path_hacks/lms/branding/__init__.py b/sys_path_hacks/lms/branding/__init__.py index cff0591071..89dde5a07f 100644 --- a/sys_path_hacks/lms/branding/__init__.py +++ b/sys_path_hacks/lms/branding/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding instead of lms.djangoapps.branding is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding') from lms.djangoapps.branding import * diff --git a/sys_path_hacks/lms/branding/admin.py b/sys_path_hacks/lms/branding/admin.py index 877837fe7b..9a8a8d4484 100644 --- a/sys_path_hacks/lms/branding/admin.py +++ b/sys_path_hacks/lms/branding/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.admin instead of lms.djangoapps.branding.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.admin') from lms.djangoapps.branding.admin import * diff --git a/sys_path_hacks/lms/branding/api.py b/sys_path_hacks/lms/branding/api.py index 5a029ed81f..d4d6319fe5 100644 --- a/sys_path_hacks/lms/branding/api.py +++ b/sys_path_hacks/lms/branding/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.api instead of lms.djangoapps.branding.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.api') from lms.djangoapps.branding.api import * diff --git a/sys_path_hacks/lms/branding/api_urls.py b/sys_path_hacks/lms/branding/api_urls.py index 8c68095696..47b4e5eb2d 100644 --- a/sys_path_hacks/lms/branding/api_urls.py +++ b/sys_path_hacks/lms/branding/api_urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.api_urls instead of lms.djangoapps.branding.api_urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.api_urls') from lms.djangoapps.branding.api_urls import * diff --git a/sys_path_hacks/lms/branding/models.py b/sys_path_hacks/lms/branding/models.py index b2ee799a92..5b1a66ce19 100644 --- a/sys_path_hacks/lms/branding/models.py +++ b/sys_path_hacks/lms/branding/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.models instead of lms.djangoapps.branding.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.models') from lms.djangoapps.branding.models import * diff --git a/sys_path_hacks/lms/branding/tests/__init__.py b/sys_path_hacks/lms/branding/tests/__init__.py index 5414392a0e..428dcb2009 100644 --- a/sys_path_hacks/lms/branding/tests/__init__.py +++ b/sys_path_hacks/lms/branding/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.tests instead of lms.djangoapps.branding.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.tests') from lms.djangoapps.branding.tests import * diff --git a/sys_path_hacks/lms/branding/tests/test_api.py b/sys_path_hacks/lms/branding/tests/test_api.py index 4c0314647f..962cddea4c 100644 --- a/sys_path_hacks/lms/branding/tests/test_api.py +++ b/sys_path_hacks/lms/branding/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.tests.test_api instead of lms.djangoapps.branding.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.tests.test_api') from lms.djangoapps.branding.tests.test_api import * diff --git a/sys_path_hacks/lms/branding/tests/test_models.py b/sys_path_hacks/lms/branding/tests/test_models.py index 5eeb4f937e..6fb4936ee5 100644 --- a/sys_path_hacks/lms/branding/tests/test_models.py +++ b/sys_path_hacks/lms/branding/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.tests.test_models instead of lms.djangoapps.branding.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.tests.test_models') from lms.djangoapps.branding.tests.test_models import * diff --git a/sys_path_hacks/lms/branding/tests/test_page.py b/sys_path_hacks/lms/branding/tests/test_page.py index 1cb682cb84..d634b0b191 100644 --- a/sys_path_hacks/lms/branding/tests/test_page.py +++ b/sys_path_hacks/lms/branding/tests/test_page.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.tests.test_page instead of lms.djangoapps.branding.tests.test_page is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.tests.test_page') from lms.djangoapps.branding.tests.test_page import * diff --git a/sys_path_hacks/lms/branding/tests/test_views.py b/sys_path_hacks/lms/branding/tests/test_views.py index 96f7c9a0d4..1f98780823 100644 --- a/sys_path_hacks/lms/branding/tests/test_views.py +++ b/sys_path_hacks/lms/branding/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.tests.test_views instead of lms.djangoapps.branding.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.tests.test_views') from lms.djangoapps.branding.tests.test_views import * diff --git a/sys_path_hacks/lms/branding/views.py b/sys_path_hacks/lms/branding/views.py index 5567e5fe4c..d1d4aa0d5f 100644 --- a/sys_path_hacks/lms/branding/views.py +++ b/sys_path_hacks/lms/branding/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing branding.views instead of lms.djangoapps.branding.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'branding.views') from lms.djangoapps.branding.views import * diff --git a/sys_path_hacks/lms/bulk_email/__init__.py b/sys_path_hacks/lms/bulk_email/__init__.py index c889b85f9d..1b771cc0e8 100644 --- a/sys_path_hacks/lms/bulk_email/__init__.py +++ b/sys_path_hacks/lms/bulk_email/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email instead of lms.djangoapps.bulk_email is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email') from lms.djangoapps.bulk_email import * diff --git a/sys_path_hacks/lms/bulk_email/admin.py b/sys_path_hacks/lms/bulk_email/admin.py index 9a352c6d30..af2e99cbab 100644 --- a/sys_path_hacks/lms/bulk_email/admin.py +++ b/sys_path_hacks/lms/bulk_email/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.admin instead of lms.djangoapps.bulk_email.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.admin') from lms.djangoapps.bulk_email.admin import * diff --git a/sys_path_hacks/lms/bulk_email/api.py b/sys_path_hacks/lms/bulk_email/api.py index 73122c5bdd..1e4c76639d 100644 --- a/sys_path_hacks/lms/bulk_email/api.py +++ b/sys_path_hacks/lms/bulk_email/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.api instead of lms.djangoapps.bulk_email.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.api') from lms.djangoapps.bulk_email.api import * diff --git a/sys_path_hacks/lms/bulk_email/apps.py b/sys_path_hacks/lms/bulk_email/apps.py index a0d32fb619..0256519476 100644 --- a/sys_path_hacks/lms/bulk_email/apps.py +++ b/sys_path_hacks/lms/bulk_email/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.apps instead of lms.djangoapps.bulk_email.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.apps') from lms.djangoapps.bulk_email.apps import * diff --git a/sys_path_hacks/lms/bulk_email/forms.py b/sys_path_hacks/lms/bulk_email/forms.py index 7b4e5466aa..fa3f2a40f7 100644 --- a/sys_path_hacks/lms/bulk_email/forms.py +++ b/sys_path_hacks/lms/bulk_email/forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.forms instead of lms.djangoapps.bulk_email.forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.forms') from lms.djangoapps.bulk_email.forms import * diff --git a/sys_path_hacks/lms/bulk_email/models.py b/sys_path_hacks/lms/bulk_email/models.py index b21f5e5a39..e543dae968 100644 --- a/sys_path_hacks/lms/bulk_email/models.py +++ b/sys_path_hacks/lms/bulk_email/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.models instead of lms.djangoapps.bulk_email.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.models') from lms.djangoapps.bulk_email.models import * diff --git a/sys_path_hacks/lms/bulk_email/models_api.py b/sys_path_hacks/lms/bulk_email/models_api.py index bc9102d007..2c3ee950f4 100644 --- a/sys_path_hacks/lms/bulk_email/models_api.py +++ b/sys_path_hacks/lms/bulk_email/models_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.models_api instead of lms.djangoapps.bulk_email.models_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.models_api') from lms.djangoapps.bulk_email.models_api import * diff --git a/sys_path_hacks/lms/bulk_email/policies.py b/sys_path_hacks/lms/bulk_email/policies.py index 7faca6c703..6536ad1453 100644 --- a/sys_path_hacks/lms/bulk_email/policies.py +++ b/sys_path_hacks/lms/bulk_email/policies.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.policies instead of lms.djangoapps.bulk_email.policies is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.policies') from lms.djangoapps.bulk_email.policies import * diff --git a/sys_path_hacks/lms/bulk_email/signals.py b/sys_path_hacks/lms/bulk_email/signals.py index 38dbec68e0..36eecc0568 100644 --- a/sys_path_hacks/lms/bulk_email/signals.py +++ b/sys_path_hacks/lms/bulk_email/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.signals instead of lms.djangoapps.bulk_email.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.signals') from lms.djangoapps.bulk_email.signals import * diff --git a/sys_path_hacks/lms/bulk_email/tasks.py b/sys_path_hacks/lms/bulk_email/tasks.py index c5f7363400..e928f0aa3b 100644 --- a/sys_path_hacks/lms/bulk_email/tasks.py +++ b/sys_path_hacks/lms/bulk_email/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tasks instead of lms.djangoapps.bulk_email.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tasks') from lms.djangoapps.bulk_email.tasks import * diff --git a/sys_path_hacks/lms/bulk_email/tests/__init__.py b/sys_path_hacks/lms/bulk_email/tests/__init__.py index e54b822931..ed0abefb30 100644 --- a/sys_path_hacks/lms/bulk_email/tests/__init__.py +++ b/sys_path_hacks/lms/bulk_email/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests instead of lms.djangoapps.bulk_email.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests') from lms.djangoapps.bulk_email.tests import * diff --git a/sys_path_hacks/lms/bulk_email/tests/test_course_optout.py b/sys_path_hacks/lms/bulk_email/tests/test_course_optout.py index d8c9c1cca3..d87338d5f9 100644 --- a/sys_path_hacks/lms/bulk_email/tests/test_course_optout.py +++ b/sys_path_hacks/lms/bulk_email/tests/test_course_optout.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests.test_course_optout instead of lms.djangoapps.bulk_email.tests.test_course_optout is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests.test_course_optout') from lms.djangoapps.bulk_email.tests.test_course_optout import * diff --git a/sys_path_hacks/lms/bulk_email/tests/test_email.py b/sys_path_hacks/lms/bulk_email/tests/test_email.py index 07e402dd8f..0e501c6cd1 100644 --- a/sys_path_hacks/lms/bulk_email/tests/test_email.py +++ b/sys_path_hacks/lms/bulk_email/tests/test_email.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests.test_email instead of lms.djangoapps.bulk_email.tests.test_email is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests.test_email') from lms.djangoapps.bulk_email.tests.test_email import * diff --git a/sys_path_hacks/lms/bulk_email/tests/test_err_handling.py b/sys_path_hacks/lms/bulk_email/tests/test_err_handling.py index 06af1646e3..cc198686c0 100644 --- a/sys_path_hacks/lms/bulk_email/tests/test_err_handling.py +++ b/sys_path_hacks/lms/bulk_email/tests/test_err_handling.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests.test_err_handling instead of lms.djangoapps.bulk_email.tests.test_err_handling is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests.test_err_handling') from lms.djangoapps.bulk_email.tests.test_err_handling import * diff --git a/sys_path_hacks/lms/bulk_email/tests/test_forms.py b/sys_path_hacks/lms/bulk_email/tests/test_forms.py index 79a875fab3..21a1dd8fa9 100644 --- a/sys_path_hacks/lms/bulk_email/tests/test_forms.py +++ b/sys_path_hacks/lms/bulk_email/tests/test_forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests.test_forms instead of lms.djangoapps.bulk_email.tests.test_forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests.test_forms') from lms.djangoapps.bulk_email.tests.test_forms import * diff --git a/sys_path_hacks/lms/bulk_email/tests/test_models.py b/sys_path_hacks/lms/bulk_email/tests/test_models.py index 133d6277d2..fb0076337b 100644 --- a/sys_path_hacks/lms/bulk_email/tests/test_models.py +++ b/sys_path_hacks/lms/bulk_email/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests.test_models instead of lms.djangoapps.bulk_email.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests.test_models') from lms.djangoapps.bulk_email.tests.test_models import * diff --git a/sys_path_hacks/lms/bulk_email/tests/test_signals.py b/sys_path_hacks/lms/bulk_email/tests/test_signals.py index ce181175b6..70312f9d39 100644 --- a/sys_path_hacks/lms/bulk_email/tests/test_signals.py +++ b/sys_path_hacks/lms/bulk_email/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests.test_signals instead of lms.djangoapps.bulk_email.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests.test_signals') from lms.djangoapps.bulk_email.tests.test_signals import * diff --git a/sys_path_hacks/lms/bulk_email/tests/test_tasks.py b/sys_path_hacks/lms/bulk_email/tests/test_tasks.py index 4589e88142..9f456100ec 100644 --- a/sys_path_hacks/lms/bulk_email/tests/test_tasks.py +++ b/sys_path_hacks/lms/bulk_email/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests.test_tasks instead of lms.djangoapps.bulk_email.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests.test_tasks') from lms.djangoapps.bulk_email.tests.test_tasks import * diff --git a/sys_path_hacks/lms/bulk_email/tests/test_views.py b/sys_path_hacks/lms/bulk_email/tests/test_views.py index 4890df7dfa..905b6bec5c 100644 --- a/sys_path_hacks/lms/bulk_email/tests/test_views.py +++ b/sys_path_hacks/lms/bulk_email/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.tests.test_views instead of lms.djangoapps.bulk_email.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.tests.test_views') from lms.djangoapps.bulk_email.tests.test_views import * diff --git a/sys_path_hacks/lms/bulk_email/urls.py b/sys_path_hacks/lms/bulk_email/urls.py index 075d1d4f3a..c84356d800 100644 --- a/sys_path_hacks/lms/bulk_email/urls.py +++ b/sys_path_hacks/lms/bulk_email/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.urls instead of lms.djangoapps.bulk_email.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.urls') from lms.djangoapps.bulk_email.urls import * diff --git a/sys_path_hacks/lms/bulk_email/views.py b/sys_path_hacks/lms/bulk_email/views.py index 98f6e4a320..6801a53938 100644 --- a/sys_path_hacks/lms/bulk_email/views.py +++ b/sys_path_hacks/lms/bulk_email/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_email.views instead of lms.djangoapps.bulk_email.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_email.views') from lms.djangoapps.bulk_email.views import * diff --git a/sys_path_hacks/lms/bulk_enroll/__init__.py b/sys_path_hacks/lms/bulk_enroll/__init__.py index 2518e9d3fd..43096fcb39 100644 --- a/sys_path_hacks/lms/bulk_enroll/__init__.py +++ b/sys_path_hacks/lms/bulk_enroll/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_enroll instead of lms.djangoapps.bulk_enroll is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_enroll') from lms.djangoapps.bulk_enroll import * diff --git a/sys_path_hacks/lms/bulk_enroll/serializers.py b/sys_path_hacks/lms/bulk_enroll/serializers.py index cccff43b57..b99c16d167 100644 --- a/sys_path_hacks/lms/bulk_enroll/serializers.py +++ b/sys_path_hacks/lms/bulk_enroll/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_enroll.serializers instead of lms.djangoapps.bulk_enroll.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_enroll.serializers') from lms.djangoapps.bulk_enroll.serializers import * diff --git a/sys_path_hacks/lms/bulk_enroll/tests/__init__.py b/sys_path_hacks/lms/bulk_enroll/tests/__init__.py index 8db4a60d8a..13b7e8fbbd 100644 --- a/sys_path_hacks/lms/bulk_enroll/tests/__init__.py +++ b/sys_path_hacks/lms/bulk_enroll/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_enroll.tests instead of lms.djangoapps.bulk_enroll.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_enroll.tests') from lms.djangoapps.bulk_enroll.tests import * diff --git a/sys_path_hacks/lms/bulk_enroll/tests/test_views.py b/sys_path_hacks/lms/bulk_enroll/tests/test_views.py index 08465db3ec..0a41d97160 100644 --- a/sys_path_hacks/lms/bulk_enroll/tests/test_views.py +++ b/sys_path_hacks/lms/bulk_enroll/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_enroll.tests.test_views instead of lms.djangoapps.bulk_enroll.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_enroll.tests.test_views') from lms.djangoapps.bulk_enroll.tests.test_views import * diff --git a/sys_path_hacks/lms/bulk_enroll/urls.py b/sys_path_hacks/lms/bulk_enroll/urls.py index ede9ebdf38..38597548b5 100644 --- a/sys_path_hacks/lms/bulk_enroll/urls.py +++ b/sys_path_hacks/lms/bulk_enroll/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_enroll.urls instead of lms.djangoapps.bulk_enroll.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_enroll.urls') from lms.djangoapps.bulk_enroll.urls import * diff --git a/sys_path_hacks/lms/bulk_enroll/views.py b/sys_path_hacks/lms/bulk_enroll/views.py index 45176bf077..18a1a87f36 100644 --- a/sys_path_hacks/lms/bulk_enroll/views.py +++ b/sys_path_hacks/lms/bulk_enroll/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing bulk_enroll.views instead of lms.djangoapps.bulk_enroll.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'bulk_enroll.views') from lms.djangoapps.bulk_enroll.views import * diff --git a/sys_path_hacks/lms/ccx/__init__.py b/sys_path_hacks/lms/ccx/__init__.py index 4c4ef07b30..8e8585d05c 100644 --- a/sys_path_hacks/lms/ccx/__init__.py +++ b/sys_path_hacks/lms/ccx/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx instead of lms.djangoapps.ccx is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx') from lms.djangoapps.ccx import * diff --git a/sys_path_hacks/lms/ccx/api/__init__.py b/sys_path_hacks/lms/ccx/api/__init__.py index 94d0ef53d0..646ac62bad 100644 --- a/sys_path_hacks/lms/ccx/api/__init__.py +++ b/sys_path_hacks/lms/ccx/api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api instead of lms.djangoapps.ccx.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api') from lms.djangoapps.ccx.api import * diff --git a/sys_path_hacks/lms/ccx/api/urls.py b/sys_path_hacks/lms/ccx/api/urls.py index af1a4c18a4..a83a7edac0 100644 --- a/sys_path_hacks/lms/ccx/api/urls.py +++ b/sys_path_hacks/lms/ccx/api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api.urls instead of lms.djangoapps.ccx.api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api.urls') from lms.djangoapps.ccx.api.urls import * diff --git a/sys_path_hacks/lms/ccx/api/v0/__init__.py b/sys_path_hacks/lms/ccx/api/v0/__init__.py index 7aa18d5de1..40d80b9d27 100644 --- a/sys_path_hacks/lms/ccx/api/v0/__init__.py +++ b/sys_path_hacks/lms/ccx/api/v0/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api.v0 instead of lms.djangoapps.ccx.api.v0 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api.v0') from lms.djangoapps.ccx.api.v0 import * diff --git a/sys_path_hacks/lms/ccx/api/v0/paginators.py b/sys_path_hacks/lms/ccx/api/v0/paginators.py index 8a506c3f94..172997e1e7 100644 --- a/sys_path_hacks/lms/ccx/api/v0/paginators.py +++ b/sys_path_hacks/lms/ccx/api/v0/paginators.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api.v0.paginators instead of lms.djangoapps.ccx.api.v0.paginators is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api.v0.paginators') from lms.djangoapps.ccx.api.v0.paginators import * diff --git a/sys_path_hacks/lms/ccx/api/v0/serializers.py b/sys_path_hacks/lms/ccx/api/v0/serializers.py index e390d888d8..c62ff6c4cb 100644 --- a/sys_path_hacks/lms/ccx/api/v0/serializers.py +++ b/sys_path_hacks/lms/ccx/api/v0/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api.v0.serializers instead of lms.djangoapps.ccx.api.v0.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api.v0.serializers') from lms.djangoapps.ccx.api.v0.serializers import * diff --git a/sys_path_hacks/lms/ccx/api/v0/tests/__init__.py b/sys_path_hacks/lms/ccx/api/v0/tests/__init__.py index 4c48d964a0..2f0578f3f6 100644 --- a/sys_path_hacks/lms/ccx/api/v0/tests/__init__.py +++ b/sys_path_hacks/lms/ccx/api/v0/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api.v0.tests instead of lms.djangoapps.ccx.api.v0.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api.v0.tests') from lms.djangoapps.ccx.api.v0.tests import * diff --git a/sys_path_hacks/lms/ccx/api/v0/tests/test_views.py b/sys_path_hacks/lms/ccx/api/v0/tests/test_views.py index 4a91ed2600..2e2fe75d25 100644 --- a/sys_path_hacks/lms/ccx/api/v0/tests/test_views.py +++ b/sys_path_hacks/lms/ccx/api/v0/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api.v0.tests.test_views instead of lms.djangoapps.ccx.api.v0.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api.v0.tests.test_views') from lms.djangoapps.ccx.api.v0.tests.test_views import * diff --git a/sys_path_hacks/lms/ccx/api/v0/urls.py b/sys_path_hacks/lms/ccx/api/v0/urls.py index fe2c870af7..661a61c4ee 100644 --- a/sys_path_hacks/lms/ccx/api/v0/urls.py +++ b/sys_path_hacks/lms/ccx/api/v0/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api.v0.urls instead of lms.djangoapps.ccx.api.v0.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api.v0.urls') from lms.djangoapps.ccx.api.v0.urls import * diff --git a/sys_path_hacks/lms/ccx/api/v0/views.py b/sys_path_hacks/lms/ccx/api/v0/views.py index 388b1e68e8..4ab36f52f5 100644 --- a/sys_path_hacks/lms/ccx/api/v0/views.py +++ b/sys_path_hacks/lms/ccx/api/v0/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.api.v0.views instead of lms.djangoapps.ccx.api.v0.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.api.v0.views') from lms.djangoapps.ccx.api.v0.views import * diff --git a/sys_path_hacks/lms/ccx/custom_exception.py b/sys_path_hacks/lms/ccx/custom_exception.py index 592f217af8..e33effc0b0 100644 --- a/sys_path_hacks/lms/ccx/custom_exception.py +++ b/sys_path_hacks/lms/ccx/custom_exception.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.custom_exception instead of lms.djangoapps.ccx.custom_exception is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.custom_exception') from lms.djangoapps.ccx.custom_exception import * diff --git a/sys_path_hacks/lms/ccx/models.py b/sys_path_hacks/lms/ccx/models.py index 074eec9bd7..808b81a6fc 100644 --- a/sys_path_hacks/lms/ccx/models.py +++ b/sys_path_hacks/lms/ccx/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.models instead of lms.djangoapps.ccx.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.models') from lms.djangoapps.ccx.models import * diff --git a/sys_path_hacks/lms/ccx/modulestore.py b/sys_path_hacks/lms/ccx/modulestore.py index 6691773e10..44bdf0e8a5 100644 --- a/sys_path_hacks/lms/ccx/modulestore.py +++ b/sys_path_hacks/lms/ccx/modulestore.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.modulestore instead of lms.djangoapps.ccx.modulestore is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.modulestore') from lms.djangoapps.ccx.modulestore import * diff --git a/sys_path_hacks/lms/ccx/overrides.py b/sys_path_hacks/lms/ccx/overrides.py index 092a6291b2..700addc8f4 100644 --- a/sys_path_hacks/lms/ccx/overrides.py +++ b/sys_path_hacks/lms/ccx/overrides.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.overrides instead of lms.djangoapps.ccx.overrides is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.overrides') from lms.djangoapps.ccx.overrides import * diff --git a/sys_path_hacks/lms/ccx/permissions.py b/sys_path_hacks/lms/ccx/permissions.py index 125966b9c6..0d812c5a10 100644 --- a/sys_path_hacks/lms/ccx/permissions.py +++ b/sys_path_hacks/lms/ccx/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.permissions instead of lms.djangoapps.ccx.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.permissions') from lms.djangoapps.ccx.permissions import * diff --git a/sys_path_hacks/lms/ccx/plugins.py b/sys_path_hacks/lms/ccx/plugins.py index b5104d0569..bd4e37cf76 100644 --- a/sys_path_hacks/lms/ccx/plugins.py +++ b/sys_path_hacks/lms/ccx/plugins.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.plugins instead of lms.djangoapps.ccx.plugins is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.plugins') from lms.djangoapps.ccx.plugins import * diff --git a/sys_path_hacks/lms/ccx/tasks.py b/sys_path_hacks/lms/ccx/tasks.py index b2abbaf650..855100be50 100644 --- a/sys_path_hacks/lms/ccx/tasks.py +++ b/sys_path_hacks/lms/ccx/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tasks instead of lms.djangoapps.ccx.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tasks') from lms.djangoapps.ccx.tasks import * diff --git a/sys_path_hacks/lms/ccx/tests/__init__.py b/sys_path_hacks/lms/ccx/tests/__init__.py index 16509e1ec5..52aa55a67a 100644 --- a/sys_path_hacks/lms/ccx/tests/__init__.py +++ b/sys_path_hacks/lms/ccx/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests instead of lms.djangoapps.ccx.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests') from lms.djangoapps.ccx.tests import * diff --git a/sys_path_hacks/lms/ccx/tests/factories.py b/sys_path_hacks/lms/ccx/tests/factories.py index 1610e9f468..af83b35b42 100644 --- a/sys_path_hacks/lms/ccx/tests/factories.py +++ b/sys_path_hacks/lms/ccx/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.factories instead of lms.djangoapps.ccx.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.factories') from lms.djangoapps.ccx.tests.factories import * diff --git a/sys_path_hacks/lms/ccx/tests/test_ccx_modulestore.py b/sys_path_hacks/lms/ccx/tests/test_ccx_modulestore.py index 2add55e41c..6fef54f7cf 100644 --- a/sys_path_hacks/lms/ccx/tests/test_ccx_modulestore.py +++ b/sys_path_hacks/lms/ccx/tests/test_ccx_modulestore.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.test_ccx_modulestore instead of lms.djangoapps.ccx.tests.test_ccx_modulestore is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.test_ccx_modulestore') from lms.djangoapps.ccx.tests.test_ccx_modulestore import * diff --git a/sys_path_hacks/lms/ccx/tests/test_field_override_performance.py b/sys_path_hacks/lms/ccx/tests/test_field_override_performance.py index 65f2a3d687..4fa63e2bc0 100644 --- a/sys_path_hacks/lms/ccx/tests/test_field_override_performance.py +++ b/sys_path_hacks/lms/ccx/tests/test_field_override_performance.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.test_field_override_performance instead of lms.djangoapps.ccx.tests.test_field_override_performance is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.test_field_override_performance') from lms.djangoapps.ccx.tests.test_field_override_performance import * diff --git a/sys_path_hacks/lms/ccx/tests/test_models.py b/sys_path_hacks/lms/ccx/tests/test_models.py index 03b1125351..048082c03d 100644 --- a/sys_path_hacks/lms/ccx/tests/test_models.py +++ b/sys_path_hacks/lms/ccx/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.test_models instead of lms.djangoapps.ccx.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.test_models') from lms.djangoapps.ccx.tests.test_models import * diff --git a/sys_path_hacks/lms/ccx/tests/test_overrides.py b/sys_path_hacks/lms/ccx/tests/test_overrides.py index 635f38d771..e543109a77 100644 --- a/sys_path_hacks/lms/ccx/tests/test_overrides.py +++ b/sys_path_hacks/lms/ccx/tests/test_overrides.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.test_overrides instead of lms.djangoapps.ccx.tests.test_overrides is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.test_overrides') from lms.djangoapps.ccx.tests.test_overrides import * diff --git a/sys_path_hacks/lms/ccx/tests/test_tasks.py b/sys_path_hacks/lms/ccx/tests/test_tasks.py index a4c7b20850..390414b05c 100644 --- a/sys_path_hacks/lms/ccx/tests/test_tasks.py +++ b/sys_path_hacks/lms/ccx/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.test_tasks instead of lms.djangoapps.ccx.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.test_tasks') from lms.djangoapps.ccx.tests.test_tasks import * diff --git a/sys_path_hacks/lms/ccx/tests/test_utils.py b/sys_path_hacks/lms/ccx/tests/test_utils.py index 07f9b58915..3be0c55c5e 100644 --- a/sys_path_hacks/lms/ccx/tests/test_utils.py +++ b/sys_path_hacks/lms/ccx/tests/test_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.test_utils instead of lms.djangoapps.ccx.tests.test_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.test_utils') from lms.djangoapps.ccx.tests.test_utils import * diff --git a/sys_path_hacks/lms/ccx/tests/test_views.py b/sys_path_hacks/lms/ccx/tests/test_views.py index 36a135b677..5019c08b8b 100644 --- a/sys_path_hacks/lms/ccx/tests/test_views.py +++ b/sys_path_hacks/lms/ccx/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.test_views instead of lms.djangoapps.ccx.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.test_views') from lms.djangoapps.ccx.tests.test_views import * diff --git a/sys_path_hacks/lms/ccx/tests/utils.py b/sys_path_hacks/lms/ccx/tests/utils.py index f5668fef34..51890f440a 100644 --- a/sys_path_hacks/lms/ccx/tests/utils.py +++ b/sys_path_hacks/lms/ccx/tests/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.tests.utils instead of lms.djangoapps.ccx.tests.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.tests.utils') from lms.djangoapps.ccx.tests.utils import * diff --git a/sys_path_hacks/lms/ccx/urls.py b/sys_path_hacks/lms/ccx/urls.py index 84724976f3..b6fd082dba 100644 --- a/sys_path_hacks/lms/ccx/urls.py +++ b/sys_path_hacks/lms/ccx/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.urls instead of lms.djangoapps.ccx.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.urls') from lms.djangoapps.ccx.urls import * diff --git a/sys_path_hacks/lms/ccx/utils.py b/sys_path_hacks/lms/ccx/utils.py index bb69f11434..02bdfa48d7 100644 --- a/sys_path_hacks/lms/ccx/utils.py +++ b/sys_path_hacks/lms/ccx/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.utils instead of lms.djangoapps.ccx.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.utils') from lms.djangoapps.ccx.utils import * diff --git a/sys_path_hacks/lms/ccx/views.py b/sys_path_hacks/lms/ccx/views.py index 58b9c9545f..46a2afb1bc 100644 --- a/sys_path_hacks/lms/ccx/views.py +++ b/sys_path_hacks/lms/ccx/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing ccx.views instead of lms.djangoapps.ccx.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'ccx.views') from lms.djangoapps.ccx.views import * diff --git a/sys_path_hacks/lms/certificates/__init__.py b/sys_path_hacks/lms/certificates/__init__.py index e25e92ee0d..96bec28cf5 100644 --- a/sys_path_hacks/lms/certificates/__init__.py +++ b/sys_path_hacks/lms/certificates/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates instead of lms.djangoapps.certificates is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates') from lms.djangoapps.certificates import * diff --git a/sys_path_hacks/lms/certificates/admin.py b/sys_path_hacks/lms/certificates/admin.py index 823579c443..affa41bdf4 100644 --- a/sys_path_hacks/lms/certificates/admin.py +++ b/sys_path_hacks/lms/certificates/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.admin instead of lms.djangoapps.certificates.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.admin') from lms.djangoapps.certificates.admin import * diff --git a/sys_path_hacks/lms/certificates/api.py b/sys_path_hacks/lms/certificates/api.py index 3c91d78f8f..e034040cd2 100644 --- a/sys_path_hacks/lms/certificates/api.py +++ b/sys_path_hacks/lms/certificates/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.api instead of lms.djangoapps.certificates.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.api') from lms.djangoapps.certificates.api import * diff --git a/sys_path_hacks/lms/certificates/apis/__init__.py b/sys_path_hacks/lms/certificates/apis/__init__.py index 36314206fa..8717f7df5c 100644 --- a/sys_path_hacks/lms/certificates/apis/__init__.py +++ b/sys_path_hacks/lms/certificates/apis/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apis instead of lms.djangoapps.certificates.apis is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apis') from lms.djangoapps.certificates.apis import * diff --git a/sys_path_hacks/lms/certificates/apis/urls.py b/sys_path_hacks/lms/certificates/apis/urls.py index ff9292fbc4..0cc49677d2 100644 --- a/sys_path_hacks/lms/certificates/apis/urls.py +++ b/sys_path_hacks/lms/certificates/apis/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apis.urls instead of lms.djangoapps.certificates.apis.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apis.urls') from lms.djangoapps.certificates.apis.urls import * diff --git a/sys_path_hacks/lms/certificates/apis/v0/__init__.py b/sys_path_hacks/lms/certificates/apis/v0/__init__.py index d07684f82c..c4da99e9db 100644 --- a/sys_path_hacks/lms/certificates/apis/v0/__init__.py +++ b/sys_path_hacks/lms/certificates/apis/v0/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apis.v0 instead of lms.djangoapps.certificates.apis.v0 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apis.v0') from lms.djangoapps.certificates.apis.v0 import * diff --git a/sys_path_hacks/lms/certificates/apis/v0/permissions.py b/sys_path_hacks/lms/certificates/apis/v0/permissions.py index 6cac35c7d9..e56574126a 100644 --- a/sys_path_hacks/lms/certificates/apis/v0/permissions.py +++ b/sys_path_hacks/lms/certificates/apis/v0/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apis.v0.permissions instead of lms.djangoapps.certificates.apis.v0.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apis.v0.permissions') from lms.djangoapps.certificates.apis.v0.permissions import * diff --git a/sys_path_hacks/lms/certificates/apis/v0/tests/__init__.py b/sys_path_hacks/lms/certificates/apis/v0/tests/__init__.py index 1c31d27411..b106febc27 100644 --- a/sys_path_hacks/lms/certificates/apis/v0/tests/__init__.py +++ b/sys_path_hacks/lms/certificates/apis/v0/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apis.v0.tests instead of lms.djangoapps.certificates.apis.v0.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apis.v0.tests') from lms.djangoapps.certificates.apis.v0.tests import * diff --git a/sys_path_hacks/lms/certificates/apis/v0/tests/test_views.py b/sys_path_hacks/lms/certificates/apis/v0/tests/test_views.py index 1aabe2d1ae..e2ae1d72cf 100644 --- a/sys_path_hacks/lms/certificates/apis/v0/tests/test_views.py +++ b/sys_path_hacks/lms/certificates/apis/v0/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apis.v0.tests.test_views instead of lms.djangoapps.certificates.apis.v0.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apis.v0.tests.test_views') from lms.djangoapps.certificates.apis.v0.tests.test_views import * diff --git a/sys_path_hacks/lms/certificates/apis/v0/urls.py b/sys_path_hacks/lms/certificates/apis/v0/urls.py index 5af9523c0f..c74844d763 100644 --- a/sys_path_hacks/lms/certificates/apis/v0/urls.py +++ b/sys_path_hacks/lms/certificates/apis/v0/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apis.v0.urls instead of lms.djangoapps.certificates.apis.v0.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apis.v0.urls') from lms.djangoapps.certificates.apis.v0.urls import * diff --git a/sys_path_hacks/lms/certificates/apis/v0/views.py b/sys_path_hacks/lms/certificates/apis/v0/views.py index a1a7cab6e2..b729fcc119 100644 --- a/sys_path_hacks/lms/certificates/apis/v0/views.py +++ b/sys_path_hacks/lms/certificates/apis/v0/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apis.v0.views instead of lms.djangoapps.certificates.apis.v0.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apis.v0.views') from lms.djangoapps.certificates.apis.v0.views import * diff --git a/sys_path_hacks/lms/certificates/apps.py b/sys_path_hacks/lms/certificates/apps.py index 38125c7c21..e4a1fccbd0 100644 --- a/sys_path_hacks/lms/certificates/apps.py +++ b/sys_path_hacks/lms/certificates/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.apps instead of lms.djangoapps.certificates.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.apps') from lms.djangoapps.certificates.apps import * diff --git a/sys_path_hacks/lms/certificates/management/__init__.py b/sys_path_hacks/lms/certificates/management/__init__.py index 8043e2e17f..7a165755f2 100644 --- a/sys_path_hacks/lms/certificates/management/__init__.py +++ b/sys_path_hacks/lms/certificates/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management instead of lms.djangoapps.certificates.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management') from lms.djangoapps.certificates.management import * diff --git a/sys_path_hacks/lms/certificates/management/commands/__init__.py b/sys_path_hacks/lms/certificates/management/commands/__init__.py index 27b87d66a3..30c8e85b5e 100644 --- a/sys_path_hacks/lms/certificates/management/commands/__init__.py +++ b/sys_path_hacks/lms/certificates/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands instead of lms.djangoapps.certificates.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands') from lms.djangoapps.certificates.management.commands import * diff --git a/sys_path_hacks/lms/certificates/management/commands/cert_whitelist.py b/sys_path_hacks/lms/certificates/management/commands/cert_whitelist.py index ffd601312b..1641c6b598 100644 --- a/sys_path_hacks/lms/certificates/management/commands/cert_whitelist.py +++ b/sys_path_hacks/lms/certificates/management/commands/cert_whitelist.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.cert_whitelist instead of lms.djangoapps.certificates.management.commands.cert_whitelist is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.cert_whitelist') from lms.djangoapps.certificates.management.commands.cert_whitelist import * diff --git a/sys_path_hacks/lms/certificates/management/commands/create_fake_cert.py b/sys_path_hacks/lms/certificates/management/commands/create_fake_cert.py index 2f1c2f7582..0e64e4fba2 100644 --- a/sys_path_hacks/lms/certificates/management/commands/create_fake_cert.py +++ b/sys_path_hacks/lms/certificates/management/commands/create_fake_cert.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.create_fake_cert instead of lms.djangoapps.certificates.management.commands.create_fake_cert is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.create_fake_cert') from lms.djangoapps.certificates.management.commands.create_fake_cert import * diff --git a/sys_path_hacks/lms/certificates/management/commands/fix_ungraded_certs.py b/sys_path_hacks/lms/certificates/management/commands/fix_ungraded_certs.py index b7480bd528..74c9574a73 100644 --- a/sys_path_hacks/lms/certificates/management/commands/fix_ungraded_certs.py +++ b/sys_path_hacks/lms/certificates/management/commands/fix_ungraded_certs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.fix_ungraded_certs instead of lms.djangoapps.certificates.management.commands.fix_ungraded_certs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.fix_ungraded_certs') from lms.djangoapps.certificates.management.commands.fix_ungraded_certs import * diff --git a/sys_path_hacks/lms/certificates/management/commands/gen_cert_report.py b/sys_path_hacks/lms/certificates/management/commands/gen_cert_report.py index c513cc58c4..817d03ba1f 100644 --- a/sys_path_hacks/lms/certificates/management/commands/gen_cert_report.py +++ b/sys_path_hacks/lms/certificates/management/commands/gen_cert_report.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.gen_cert_report instead of lms.djangoapps.certificates.management.commands.gen_cert_report is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.gen_cert_report') from lms.djangoapps.certificates.management.commands.gen_cert_report import * diff --git a/sys_path_hacks/lms/certificates/management/commands/regenerate_user.py b/sys_path_hacks/lms/certificates/management/commands/regenerate_user.py index 9ce9025590..3946e5c755 100644 --- a/sys_path_hacks/lms/certificates/management/commands/regenerate_user.py +++ b/sys_path_hacks/lms/certificates/management/commands/regenerate_user.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.regenerate_user instead of lms.djangoapps.certificates.management.commands.regenerate_user is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.regenerate_user') from lms.djangoapps.certificates.management.commands.regenerate_user import * diff --git a/sys_path_hacks/lms/certificates/management/commands/resubmit_error_certificates.py b/sys_path_hacks/lms/certificates/management/commands/resubmit_error_certificates.py index ede0939deb..cdcf15281b 100644 --- a/sys_path_hacks/lms/certificates/management/commands/resubmit_error_certificates.py +++ b/sys_path_hacks/lms/certificates/management/commands/resubmit_error_certificates.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.resubmit_error_certificates instead of lms.djangoapps.certificates.management.commands.resubmit_error_certificates is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.resubmit_error_certificates') from lms.djangoapps.certificates.management.commands.resubmit_error_certificates import * diff --git a/sys_path_hacks/lms/certificates/management/commands/tests/__init__.py b/sys_path_hacks/lms/certificates/management/commands/tests/__init__.py index ed1f36ee13..58bfcb8ea8 100644 --- a/sys_path_hacks/lms/certificates/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/certificates/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.tests instead of lms.djangoapps.certificates.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.tests') from lms.djangoapps.certificates.management.commands.tests import * diff --git a/sys_path_hacks/lms/certificates/management/commands/tests/test_cert_whitelist.py b/sys_path_hacks/lms/certificates/management/commands/tests/test_cert_whitelist.py index b99653b978..f26a44ec69 100644 --- a/sys_path_hacks/lms/certificates/management/commands/tests/test_cert_whitelist.py +++ b/sys_path_hacks/lms/certificates/management/commands/tests/test_cert_whitelist.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.tests.test_cert_whitelist instead of lms.djangoapps.certificates.management.commands.tests.test_cert_whitelist is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.tests.test_cert_whitelist') from lms.djangoapps.certificates.management.commands.tests.test_cert_whitelist import * diff --git a/sys_path_hacks/lms/certificates/management/commands/tests/test_fix_ungraded_certs.py b/sys_path_hacks/lms/certificates/management/commands/tests/test_fix_ungraded_certs.py index 662142f0f2..eb911bc490 100644 --- a/sys_path_hacks/lms/certificates/management/commands/tests/test_fix_ungraded_certs.py +++ b/sys_path_hacks/lms/certificates/management/commands/tests/test_fix_ungraded_certs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.tests.test_fix_ungraded_certs instead of lms.djangoapps.certificates.management.commands.tests.test_fix_ungraded_certs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.tests.test_fix_ungraded_certs') from lms.djangoapps.certificates.management.commands.tests.test_fix_ungraded_certs import * diff --git a/sys_path_hacks/lms/certificates/management/commands/tests/test_gen_cert_report.py b/sys_path_hacks/lms/certificates/management/commands/tests/test_gen_cert_report.py index e516381ff8..fb679a014a 100644 --- a/sys_path_hacks/lms/certificates/management/commands/tests/test_gen_cert_report.py +++ b/sys_path_hacks/lms/certificates/management/commands/tests/test_gen_cert_report.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.tests.test_gen_cert_report instead of lms.djangoapps.certificates.management.commands.tests.test_gen_cert_report is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.tests.test_gen_cert_report') from lms.djangoapps.certificates.management.commands.tests.test_gen_cert_report import * diff --git a/sys_path_hacks/lms/certificates/management/commands/ungenerated_certs.py b/sys_path_hacks/lms/certificates/management/commands/ungenerated_certs.py index fd160f4a35..ce6ebe9be1 100644 --- a/sys_path_hacks/lms/certificates/management/commands/ungenerated_certs.py +++ b/sys_path_hacks/lms/certificates/management/commands/ungenerated_certs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.management.commands.ungenerated_certs instead of lms.djangoapps.certificates.management.commands.ungenerated_certs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.management.commands.ungenerated_certs') from lms.djangoapps.certificates.management.commands.ungenerated_certs import * diff --git a/sys_path_hacks/lms/certificates/models.py b/sys_path_hacks/lms/certificates/models.py index b987973460..2302211834 100644 --- a/sys_path_hacks/lms/certificates/models.py +++ b/sys_path_hacks/lms/certificates/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.models instead of lms.djangoapps.certificates.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.models') from lms.djangoapps.certificates.models import * diff --git a/sys_path_hacks/lms/certificates/permissions.py b/sys_path_hacks/lms/certificates/permissions.py index 951f600f3a..92bc13de28 100644 --- a/sys_path_hacks/lms/certificates/permissions.py +++ b/sys_path_hacks/lms/certificates/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.permissions instead of lms.djangoapps.certificates.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.permissions') from lms.djangoapps.certificates.permissions import * diff --git a/sys_path_hacks/lms/certificates/queue.py b/sys_path_hacks/lms/certificates/queue.py index 0087298581..e4aa51bbed 100644 --- a/sys_path_hacks/lms/certificates/queue.py +++ b/sys_path_hacks/lms/certificates/queue.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.queue instead of lms.djangoapps.certificates.queue is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.queue') from lms.djangoapps.certificates.queue import * diff --git a/sys_path_hacks/lms/certificates/services.py b/sys_path_hacks/lms/certificates/services.py index 96be8c1189..cd584fdc56 100644 --- a/sys_path_hacks/lms/certificates/services.py +++ b/sys_path_hacks/lms/certificates/services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.services instead of lms.djangoapps.certificates.services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.services') from lms.djangoapps.certificates.services import * diff --git a/sys_path_hacks/lms/certificates/signals.py b/sys_path_hacks/lms/certificates/signals.py index b1aba4b2c6..d500226163 100644 --- a/sys_path_hacks/lms/certificates/signals.py +++ b/sys_path_hacks/lms/certificates/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.signals instead of lms.djangoapps.certificates.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.signals') from lms.djangoapps.certificates.signals import * diff --git a/sys_path_hacks/lms/certificates/tasks.py b/sys_path_hacks/lms/certificates/tasks.py index 40ab09c242..c439cad1d1 100644 --- a/sys_path_hacks/lms/certificates/tasks.py +++ b/sys_path_hacks/lms/certificates/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tasks instead of lms.djangoapps.certificates.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tasks') from lms.djangoapps.certificates.tasks import * diff --git a/sys_path_hacks/lms/certificates/tests/__init__.py b/sys_path_hacks/lms/certificates/tests/__init__.py index 153c5690ab..4b99b6d48d 100644 --- a/sys_path_hacks/lms/certificates/tests/__init__.py +++ b/sys_path_hacks/lms/certificates/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests instead of lms.djangoapps.certificates.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests') from lms.djangoapps.certificates.tests import * diff --git a/sys_path_hacks/lms/certificates/tests/factories.py b/sys_path_hacks/lms/certificates/tests/factories.py index 680da67214..8399c59f2f 100644 --- a/sys_path_hacks/lms/certificates/tests/factories.py +++ b/sys_path_hacks/lms/certificates/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.factories instead of lms.djangoapps.certificates.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.factories') from lms.djangoapps.certificates.tests.factories import * diff --git a/sys_path_hacks/lms/certificates/tests/test_api.py b/sys_path_hacks/lms/certificates/tests/test_api.py index 644a87e29a..fee44c07d8 100644 --- a/sys_path_hacks/lms/certificates/tests/test_api.py +++ b/sys_path_hacks/lms/certificates/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_api instead of lms.djangoapps.certificates.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_api') from lms.djangoapps.certificates.tests.test_api import * diff --git a/sys_path_hacks/lms/certificates/tests/test_cert_management.py b/sys_path_hacks/lms/certificates/tests/test_cert_management.py index ab04b0567d..215c0a8f6b 100644 --- a/sys_path_hacks/lms/certificates/tests/test_cert_management.py +++ b/sys_path_hacks/lms/certificates/tests/test_cert_management.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_cert_management instead of lms.djangoapps.certificates.tests.test_cert_management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_cert_management') from lms.djangoapps.certificates.tests.test_cert_management import * diff --git a/sys_path_hacks/lms/certificates/tests/test_create_fake_cert.py b/sys_path_hacks/lms/certificates/tests/test_create_fake_cert.py index 5c261fb705..082d52718b 100644 --- a/sys_path_hacks/lms/certificates/tests/test_create_fake_cert.py +++ b/sys_path_hacks/lms/certificates/tests/test_create_fake_cert.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_create_fake_cert instead of lms.djangoapps.certificates.tests.test_create_fake_cert is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_create_fake_cert') from lms.djangoapps.certificates.tests.test_create_fake_cert import * diff --git a/sys_path_hacks/lms/certificates/tests/test_models.py b/sys_path_hacks/lms/certificates/tests/test_models.py index 4c164594aa..dd945c66af 100644 --- a/sys_path_hacks/lms/certificates/tests/test_models.py +++ b/sys_path_hacks/lms/certificates/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_models instead of lms.djangoapps.certificates.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_models') from lms.djangoapps.certificates.tests.test_models import * diff --git a/sys_path_hacks/lms/certificates/tests/test_queue.py b/sys_path_hacks/lms/certificates/tests/test_queue.py index c89787ca9e..271b75fcb0 100644 --- a/sys_path_hacks/lms/certificates/tests/test_queue.py +++ b/sys_path_hacks/lms/certificates/tests/test_queue.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_queue instead of lms.djangoapps.certificates.tests.test_queue is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_queue') from lms.djangoapps.certificates.tests.test_queue import * diff --git a/sys_path_hacks/lms/certificates/tests/test_services.py b/sys_path_hacks/lms/certificates/tests/test_services.py index d5c85e78fc..10884c3e29 100644 --- a/sys_path_hacks/lms/certificates/tests/test_services.py +++ b/sys_path_hacks/lms/certificates/tests/test_services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_services instead of lms.djangoapps.certificates.tests.test_services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_services') from lms.djangoapps.certificates.tests.test_services import * diff --git a/sys_path_hacks/lms/certificates/tests/test_signals.py b/sys_path_hacks/lms/certificates/tests/test_signals.py index b462c8724a..506d9bff92 100644 --- a/sys_path_hacks/lms/certificates/tests/test_signals.py +++ b/sys_path_hacks/lms/certificates/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_signals instead of lms.djangoapps.certificates.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_signals') from lms.djangoapps.certificates.tests.test_signals import * diff --git a/sys_path_hacks/lms/certificates/tests/test_support_views.py b/sys_path_hacks/lms/certificates/tests/test_support_views.py index 2405f01474..42b34073ec 100644 --- a/sys_path_hacks/lms/certificates/tests/test_support_views.py +++ b/sys_path_hacks/lms/certificates/tests/test_support_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_support_views instead of lms.djangoapps.certificates.tests.test_support_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_support_views') from lms.djangoapps.certificates.tests.test_support_views import * diff --git a/sys_path_hacks/lms/certificates/tests/test_tasks.py b/sys_path_hacks/lms/certificates/tests/test_tasks.py index 75876ad816..03c7cce1fc 100644 --- a/sys_path_hacks/lms/certificates/tests/test_tasks.py +++ b/sys_path_hacks/lms/certificates/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_tasks instead of lms.djangoapps.certificates.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_tasks') from lms.djangoapps.certificates.tests.test_tasks import * diff --git a/sys_path_hacks/lms/certificates/tests/test_views.py b/sys_path_hacks/lms/certificates/tests/test_views.py index 38eafc5d9a..72718baa81 100644 --- a/sys_path_hacks/lms/certificates/tests/test_views.py +++ b/sys_path_hacks/lms/certificates/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_views instead of lms.djangoapps.certificates.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_views') from lms.djangoapps.certificates.tests.test_views import * diff --git a/sys_path_hacks/lms/certificates/tests/test_webview_views.py b/sys_path_hacks/lms/certificates/tests/test_webview_views.py index b0405ed184..c66a0d1eae 100644 --- a/sys_path_hacks/lms/certificates/tests/test_webview_views.py +++ b/sys_path_hacks/lms/certificates/tests/test_webview_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.test_webview_views instead of lms.djangoapps.certificates.tests.test_webview_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.test_webview_views') from lms.djangoapps.certificates.tests.test_webview_views import * diff --git a/sys_path_hacks/lms/certificates/tests/tests.py b/sys_path_hacks/lms/certificates/tests/tests.py index 15bda53625..1010543a64 100644 --- a/sys_path_hacks/lms/certificates/tests/tests.py +++ b/sys_path_hacks/lms/certificates/tests/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.tests.tests instead of lms.djangoapps.certificates.tests.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.tests.tests') from lms.djangoapps.certificates.tests.tests import * diff --git a/sys_path_hacks/lms/certificates/urls.py b/sys_path_hacks/lms/certificates/urls.py index 2a2d74e7f7..28a69288d4 100644 --- a/sys_path_hacks/lms/certificates/urls.py +++ b/sys_path_hacks/lms/certificates/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.urls instead of lms.djangoapps.certificates.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.urls') from lms.djangoapps.certificates.urls import * diff --git a/sys_path_hacks/lms/certificates/views/__init__.py b/sys_path_hacks/lms/certificates/views/__init__.py index cfb7678e9a..8aacbdf3b5 100644 --- a/sys_path_hacks/lms/certificates/views/__init__.py +++ b/sys_path_hacks/lms/certificates/views/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.views instead of lms.djangoapps.certificates.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.views') from lms.djangoapps.certificates.views import * diff --git a/sys_path_hacks/lms/certificates/views/support.py b/sys_path_hacks/lms/certificates/views/support.py index d357bc60ce..695cfd0344 100644 --- a/sys_path_hacks/lms/certificates/views/support.py +++ b/sys_path_hacks/lms/certificates/views/support.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.views.support instead of lms.djangoapps.certificates.views.support is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.views.support') from lms.djangoapps.certificates.views.support import * diff --git a/sys_path_hacks/lms/certificates/views/webview.py b/sys_path_hacks/lms/certificates/views/webview.py index 91fe10f0f6..d43bd64162 100644 --- a/sys_path_hacks/lms/certificates/views/webview.py +++ b/sys_path_hacks/lms/certificates/views/webview.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.views.webview instead of lms.djangoapps.certificates.views.webview is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.views.webview') from lms.djangoapps.certificates.views.webview import * diff --git a/sys_path_hacks/lms/certificates/views/xqueue.py b/sys_path_hacks/lms/certificates/views/xqueue.py index 7eb3d9e555..494e5d2bf5 100644 --- a/sys_path_hacks/lms/certificates/views/xqueue.py +++ b/sys_path_hacks/lms/certificates/views/xqueue.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing certificates.views.xqueue instead of lms.djangoapps.certificates.views.xqueue is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'certificates.views.xqueue') from lms.djangoapps.certificates.views.xqueue import * diff --git a/sys_path_hacks/lms/commerce/__init__.py b/sys_path_hacks/lms/commerce/__init__.py index 198f526606..09c2c91ee3 100644 --- a/sys_path_hacks/lms/commerce/__init__.py +++ b/sys_path_hacks/lms/commerce/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce instead of lms.djangoapps.commerce is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce') from lms.djangoapps.commerce import * diff --git a/sys_path_hacks/lms/commerce/admin.py b/sys_path_hacks/lms/commerce/admin.py index ea5b3abb5a..e35ffe3c54 100644 --- a/sys_path_hacks/lms/commerce/admin.py +++ b/sys_path_hacks/lms/commerce/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.admin instead of lms.djangoapps.commerce.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.admin') from lms.djangoapps.commerce.admin import * diff --git a/sys_path_hacks/lms/commerce/api/__init__.py b/sys_path_hacks/lms/commerce/api/__init__.py index e46ad75b46..cc4dc39ef8 100644 --- a/sys_path_hacks/lms/commerce/api/__init__.py +++ b/sys_path_hacks/lms/commerce/api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api instead of lms.djangoapps.commerce.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api') from lms.djangoapps.commerce.api import * diff --git a/sys_path_hacks/lms/commerce/api/urls.py b/sys_path_hacks/lms/commerce/api/urls.py index 077057f646..3d99a7a294 100644 --- a/sys_path_hacks/lms/commerce/api/urls.py +++ b/sys_path_hacks/lms/commerce/api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.urls instead of lms.djangoapps.commerce.api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.urls') from lms.djangoapps.commerce.api.urls import * diff --git a/sys_path_hacks/lms/commerce/api/v0/__init__.py b/sys_path_hacks/lms/commerce/api/v0/__init__.py index d72a579d70..dfe56257bc 100644 --- a/sys_path_hacks/lms/commerce/api/v0/__init__.py +++ b/sys_path_hacks/lms/commerce/api/v0/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v0 instead of lms.djangoapps.commerce.api.v0 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v0') from lms.djangoapps.commerce.api.v0 import * diff --git a/sys_path_hacks/lms/commerce/api/v0/tests/__init__.py b/sys_path_hacks/lms/commerce/api/v0/tests/__init__.py index 0790deb0f9..3fedbb51fe 100644 --- a/sys_path_hacks/lms/commerce/api/v0/tests/__init__.py +++ b/sys_path_hacks/lms/commerce/api/v0/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v0.tests instead of lms.djangoapps.commerce.api.v0.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v0.tests') from lms.djangoapps.commerce.api.v0.tests import * diff --git a/sys_path_hacks/lms/commerce/api/v0/tests/test_views.py b/sys_path_hacks/lms/commerce/api/v0/tests/test_views.py index 16b79089d5..3d5f302e07 100644 --- a/sys_path_hacks/lms/commerce/api/v0/tests/test_views.py +++ b/sys_path_hacks/lms/commerce/api/v0/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v0.tests.test_views instead of lms.djangoapps.commerce.api.v0.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v0.tests.test_views') from lms.djangoapps.commerce.api.v0.tests.test_views import * diff --git a/sys_path_hacks/lms/commerce/api/v0/urls.py b/sys_path_hacks/lms/commerce/api/v0/urls.py index 5dc13b5a6d..0ad3484ac3 100644 --- a/sys_path_hacks/lms/commerce/api/v0/urls.py +++ b/sys_path_hacks/lms/commerce/api/v0/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v0.urls instead of lms.djangoapps.commerce.api.v0.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v0.urls') from lms.djangoapps.commerce.api.v0.urls import * diff --git a/sys_path_hacks/lms/commerce/api/v0/views.py b/sys_path_hacks/lms/commerce/api/v0/views.py index 978ae4253b..e3f6068a79 100644 --- a/sys_path_hacks/lms/commerce/api/v0/views.py +++ b/sys_path_hacks/lms/commerce/api/v0/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v0.views instead of lms.djangoapps.commerce.api.v0.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v0.views') from lms.djangoapps.commerce.api.v0.views import * diff --git a/sys_path_hacks/lms/commerce/api/v1/__init__.py b/sys_path_hacks/lms/commerce/api/v1/__init__.py index 357423ed64..91e6528377 100644 --- a/sys_path_hacks/lms/commerce/api/v1/__init__.py +++ b/sys_path_hacks/lms/commerce/api/v1/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1 instead of lms.djangoapps.commerce.api.v1 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1') from lms.djangoapps.commerce.api.v1 import * diff --git a/sys_path_hacks/lms/commerce/api/v1/models.py b/sys_path_hacks/lms/commerce/api/v1/models.py index ddfe6ca82e..47ee9d1999 100644 --- a/sys_path_hacks/lms/commerce/api/v1/models.py +++ b/sys_path_hacks/lms/commerce/api/v1/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.models instead of lms.djangoapps.commerce.api.v1.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.models') from lms.djangoapps.commerce.api.v1.models import * diff --git a/sys_path_hacks/lms/commerce/api/v1/permissions.py b/sys_path_hacks/lms/commerce/api/v1/permissions.py index af66659dea..35f9cd1a31 100644 --- a/sys_path_hacks/lms/commerce/api/v1/permissions.py +++ b/sys_path_hacks/lms/commerce/api/v1/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.permissions instead of lms.djangoapps.commerce.api.v1.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.permissions') from lms.djangoapps.commerce.api.v1.permissions import * diff --git a/sys_path_hacks/lms/commerce/api/v1/serializers.py b/sys_path_hacks/lms/commerce/api/v1/serializers.py index 79f7855cbd..fc754d0054 100644 --- a/sys_path_hacks/lms/commerce/api/v1/serializers.py +++ b/sys_path_hacks/lms/commerce/api/v1/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.serializers instead of lms.djangoapps.commerce.api.v1.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.serializers') from lms.djangoapps.commerce.api.v1.serializers import * diff --git a/sys_path_hacks/lms/commerce/api/v1/tests/__init__.py b/sys_path_hacks/lms/commerce/api/v1/tests/__init__.py index 0ddf5ed7e7..3ca7d9e204 100644 --- a/sys_path_hacks/lms/commerce/api/v1/tests/__init__.py +++ b/sys_path_hacks/lms/commerce/api/v1/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.tests instead of lms.djangoapps.commerce.api.v1.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.tests') from lms.djangoapps.commerce.api.v1.tests import * diff --git a/sys_path_hacks/lms/commerce/api/v1/tests/test_models.py b/sys_path_hacks/lms/commerce/api/v1/tests/test_models.py index 42215cdf0e..1914a45ebf 100644 --- a/sys_path_hacks/lms/commerce/api/v1/tests/test_models.py +++ b/sys_path_hacks/lms/commerce/api/v1/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.tests.test_models instead of lms.djangoapps.commerce.api.v1.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.tests.test_models') from lms.djangoapps.commerce.api.v1.tests.test_models import * diff --git a/sys_path_hacks/lms/commerce/api/v1/tests/test_serializers.py b/sys_path_hacks/lms/commerce/api/v1/tests/test_serializers.py index f62d7f4a4a..47c64338c7 100644 --- a/sys_path_hacks/lms/commerce/api/v1/tests/test_serializers.py +++ b/sys_path_hacks/lms/commerce/api/v1/tests/test_serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.tests.test_serializers instead of lms.djangoapps.commerce.api.v1.tests.test_serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.tests.test_serializers') from lms.djangoapps.commerce.api.v1.tests.test_serializers import * diff --git a/sys_path_hacks/lms/commerce/api/v1/tests/test_views.py b/sys_path_hacks/lms/commerce/api/v1/tests/test_views.py index 1918dea66e..53164bef9a 100644 --- a/sys_path_hacks/lms/commerce/api/v1/tests/test_views.py +++ b/sys_path_hacks/lms/commerce/api/v1/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.tests.test_views instead of lms.djangoapps.commerce.api.v1.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.tests.test_views') from lms.djangoapps.commerce.api.v1.tests.test_views import * diff --git a/sys_path_hacks/lms/commerce/api/v1/urls.py b/sys_path_hacks/lms/commerce/api/v1/urls.py index 09f2e16bda..d5f0e3942a 100644 --- a/sys_path_hacks/lms/commerce/api/v1/urls.py +++ b/sys_path_hacks/lms/commerce/api/v1/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.urls instead of lms.djangoapps.commerce.api.v1.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.urls') from lms.djangoapps.commerce.api.v1.urls import * diff --git a/sys_path_hacks/lms/commerce/api/v1/views.py b/sys_path_hacks/lms/commerce/api/v1/views.py index b8d1fac545..394312ef78 100644 --- a/sys_path_hacks/lms/commerce/api/v1/views.py +++ b/sys_path_hacks/lms/commerce/api/v1/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.api.v1.views instead of lms.djangoapps.commerce.api.v1.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.api.v1.views') from lms.djangoapps.commerce.api.v1.views import * diff --git a/sys_path_hacks/lms/commerce/apps.py b/sys_path_hacks/lms/commerce/apps.py index 5c0bf4fe62..508081069a 100644 --- a/sys_path_hacks/lms/commerce/apps.py +++ b/sys_path_hacks/lms/commerce/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.apps instead of lms.djangoapps.commerce.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.apps') from lms.djangoapps.commerce.apps import * diff --git a/sys_path_hacks/lms/commerce/constants.py b/sys_path_hacks/lms/commerce/constants.py index 48005a7db9..6b4e60b1f2 100644 --- a/sys_path_hacks/lms/commerce/constants.py +++ b/sys_path_hacks/lms/commerce/constants.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.constants instead of lms.djangoapps.commerce.constants is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.constants') from lms.djangoapps.commerce.constants import * diff --git a/sys_path_hacks/lms/commerce/exceptions.py b/sys_path_hacks/lms/commerce/exceptions.py index f6eb8c9233..7beb20c585 100644 --- a/sys_path_hacks/lms/commerce/exceptions.py +++ b/sys_path_hacks/lms/commerce/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.exceptions instead of lms.djangoapps.commerce.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.exceptions') from lms.djangoapps.commerce.exceptions import * diff --git a/sys_path_hacks/lms/commerce/http.py b/sys_path_hacks/lms/commerce/http.py index 5e1b9edb3c..3baeaf6568 100644 --- a/sys_path_hacks/lms/commerce/http.py +++ b/sys_path_hacks/lms/commerce/http.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.http instead of lms.djangoapps.commerce.http is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.http') from lms.djangoapps.commerce.http import * diff --git a/sys_path_hacks/lms/commerce/management/__init__.py b/sys_path_hacks/lms/commerce/management/__init__.py index 1db56acbba..900933f43e 100644 --- a/sys_path_hacks/lms/commerce/management/__init__.py +++ b/sys_path_hacks/lms/commerce/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.management instead of lms.djangoapps.commerce.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.management') from lms.djangoapps.commerce.management import * diff --git a/sys_path_hacks/lms/commerce/management/commands/__init__.py b/sys_path_hacks/lms/commerce/management/commands/__init__.py index 227d9d6e6f..2be2f63e19 100644 --- a/sys_path_hacks/lms/commerce/management/commands/__init__.py +++ b/sys_path_hacks/lms/commerce/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.management.commands instead of lms.djangoapps.commerce.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.management.commands') from lms.djangoapps.commerce.management.commands import * diff --git a/sys_path_hacks/lms/commerce/management/commands/configure_commerce.py b/sys_path_hacks/lms/commerce/management/commands/configure_commerce.py index d22913ec3e..10069cfaee 100644 --- a/sys_path_hacks/lms/commerce/management/commands/configure_commerce.py +++ b/sys_path_hacks/lms/commerce/management/commands/configure_commerce.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.management.commands.configure_commerce instead of lms.djangoapps.commerce.management.commands.configure_commerce is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.management.commands.configure_commerce') from lms.djangoapps.commerce.management.commands.configure_commerce import * diff --git a/sys_path_hacks/lms/commerce/management/commands/create_orders_for_old_enterprise_course_enrollment.py b/sys_path_hacks/lms/commerce/management/commands/create_orders_for_old_enterprise_course_enrollment.py index e60e83cc02..e592be8981 100644 --- a/sys_path_hacks/lms/commerce/management/commands/create_orders_for_old_enterprise_course_enrollment.py +++ b/sys_path_hacks/lms/commerce/management/commands/create_orders_for_old_enterprise_course_enrollment.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.management.commands.create_orders_for_old_enterprise_course_enrollment instead of lms.djangoapps.commerce.management.commands.create_orders_for_old_enterprise_course_enrollment is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.management.commands.create_orders_for_old_enterprise_course_enrollment') from lms.djangoapps.commerce.management.commands.create_orders_for_old_enterprise_course_enrollment import * diff --git a/sys_path_hacks/lms/commerce/management/commands/tests/__init__.py b/sys_path_hacks/lms/commerce/management/commands/tests/__init__.py index 8f4c82ebba..ddbcb8eab6 100644 --- a/sys_path_hacks/lms/commerce/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/commerce/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.management.commands.tests instead of lms.djangoapps.commerce.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.management.commands.tests') from lms.djangoapps.commerce.management.commands.tests import * diff --git a/sys_path_hacks/lms/commerce/management/commands/tests/test_configure_commerce.py b/sys_path_hacks/lms/commerce/management/commands/tests/test_configure_commerce.py index 1489016a32..54f1ececc0 100644 --- a/sys_path_hacks/lms/commerce/management/commands/tests/test_configure_commerce.py +++ b/sys_path_hacks/lms/commerce/management/commands/tests/test_configure_commerce.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.management.commands.tests.test_configure_commerce instead of lms.djangoapps.commerce.management.commands.tests.test_configure_commerce is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.management.commands.tests.test_configure_commerce') from lms.djangoapps.commerce.management.commands.tests.test_configure_commerce import * diff --git a/sys_path_hacks/lms/commerce/management/commands/tests/test_create_orders_for_old_enterprise_course_enrollmnet.py b/sys_path_hacks/lms/commerce/management/commands/tests/test_create_orders_for_old_enterprise_course_enrollmnet.py index 4ed646cbd4..57726e5445 100644 --- a/sys_path_hacks/lms/commerce/management/commands/tests/test_create_orders_for_old_enterprise_course_enrollmnet.py +++ b/sys_path_hacks/lms/commerce/management/commands/tests/test_create_orders_for_old_enterprise_course_enrollmnet.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.management.commands.tests.test_create_orders_for_old_enterprise_course_enrollmnet instead of lms.djangoapps.commerce.management.commands.tests.test_create_orders_for_old_enterprise_course_enrollmnet is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.management.commands.tests.test_create_orders_for_old_enterprise_course_enrollmnet') from lms.djangoapps.commerce.management.commands.tests.test_create_orders_for_old_enterprise_course_enrollmnet import * diff --git a/sys_path_hacks/lms/commerce/models.py b/sys_path_hacks/lms/commerce/models.py index 91d1b83a87..d2e20224e7 100644 --- a/sys_path_hacks/lms/commerce/models.py +++ b/sys_path_hacks/lms/commerce/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.models instead of lms.djangoapps.commerce.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.models') from lms.djangoapps.commerce.models import * diff --git a/sys_path_hacks/lms/commerce/signals.py b/sys_path_hacks/lms/commerce/signals.py index 7b3b565605..c0166b0d44 100644 --- a/sys_path_hacks/lms/commerce/signals.py +++ b/sys_path_hacks/lms/commerce/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.signals instead of lms.djangoapps.commerce.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.signals') from lms.djangoapps.commerce.signals import * diff --git a/sys_path_hacks/lms/commerce/tests/__init__.py b/sys_path_hacks/lms/commerce/tests/__init__.py index 482bf77fd5..ffd507a912 100644 --- a/sys_path_hacks/lms/commerce/tests/__init__.py +++ b/sys_path_hacks/lms/commerce/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.tests instead of lms.djangoapps.commerce.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.tests') from lms.djangoapps.commerce.tests import * diff --git a/sys_path_hacks/lms/commerce/tests/factories.py b/sys_path_hacks/lms/commerce/tests/factories.py index 9c6834dfc5..20444419c6 100644 --- a/sys_path_hacks/lms/commerce/tests/factories.py +++ b/sys_path_hacks/lms/commerce/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.tests.factories instead of lms.djangoapps.commerce.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.tests.factories') from lms.djangoapps.commerce.tests.factories import * diff --git a/sys_path_hacks/lms/commerce/tests/mocks.py b/sys_path_hacks/lms/commerce/tests/mocks.py index 497d0ea6a7..e948576c65 100644 --- a/sys_path_hacks/lms/commerce/tests/mocks.py +++ b/sys_path_hacks/lms/commerce/tests/mocks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.tests.mocks instead of lms.djangoapps.commerce.tests.mocks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.tests.mocks') from lms.djangoapps.commerce.tests.mocks import * diff --git a/sys_path_hacks/lms/commerce/tests/test_signals.py b/sys_path_hacks/lms/commerce/tests/test_signals.py index b7c49aac99..e2111d1c67 100644 --- a/sys_path_hacks/lms/commerce/tests/test_signals.py +++ b/sys_path_hacks/lms/commerce/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.tests.test_signals instead of lms.djangoapps.commerce.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.tests.test_signals') from lms.djangoapps.commerce.tests.test_signals import * diff --git a/sys_path_hacks/lms/commerce/tests/test_utils.py b/sys_path_hacks/lms/commerce/tests/test_utils.py index ad8ee03428..b8ce74081c 100644 --- a/sys_path_hacks/lms/commerce/tests/test_utils.py +++ b/sys_path_hacks/lms/commerce/tests/test_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.tests.test_utils instead of lms.djangoapps.commerce.tests.test_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.tests.test_utils') from lms.djangoapps.commerce.tests.test_utils import * diff --git a/sys_path_hacks/lms/commerce/tests/test_views.py b/sys_path_hacks/lms/commerce/tests/test_views.py index b567c4ad56..3faf3321b8 100644 --- a/sys_path_hacks/lms/commerce/tests/test_views.py +++ b/sys_path_hacks/lms/commerce/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.tests.test_views instead of lms.djangoapps.commerce.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.tests.test_views') from lms.djangoapps.commerce.tests.test_views import * diff --git a/sys_path_hacks/lms/commerce/utils.py b/sys_path_hacks/lms/commerce/utils.py index f4ee68e35c..8ffe9a7dba 100644 --- a/sys_path_hacks/lms/commerce/utils.py +++ b/sys_path_hacks/lms/commerce/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing commerce.utils instead of lms.djangoapps.commerce.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'commerce.utils') from lms.djangoapps.commerce.utils import * diff --git a/sys_path_hacks/lms/course_api/__init__.py b/sys_path_hacks/lms/course_api/__init__.py index 3c7ea1f912..7fd328a4a0 100644 --- a/sys_path_hacks/lms/course_api/__init__.py +++ b/sys_path_hacks/lms/course_api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api instead of lms.djangoapps.course_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api') from lms.djangoapps.course_api import * diff --git a/sys_path_hacks/lms/course_api/api.py b/sys_path_hacks/lms/course_api/api.py index ab8fcb23fb..0acde11c93 100644 --- a/sys_path_hacks/lms/course_api/api.py +++ b/sys_path_hacks/lms/course_api/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.api instead of lms.djangoapps.course_api.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.api') from lms.djangoapps.course_api.api import * diff --git a/sys_path_hacks/lms/course_api/blocks/__init__.py b/sys_path_hacks/lms/course_api/blocks/__init__.py index 347a4c8b7a..f37bbfb02f 100644 --- a/sys_path_hacks/lms/course_api/blocks/__init__.py +++ b/sys_path_hacks/lms/course_api/blocks/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks instead of lms.djangoapps.course_api.blocks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks') from lms.djangoapps.course_api.blocks import * diff --git a/sys_path_hacks/lms/course_api/blocks/api.py b/sys_path_hacks/lms/course_api/blocks/api.py index ff5d1048e9..c76dc8b261 100644 --- a/sys_path_hacks/lms/course_api/blocks/api.py +++ b/sys_path_hacks/lms/course_api/blocks/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.api instead of lms.djangoapps.course_api.blocks.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.api') from lms.djangoapps.course_api.blocks.api import * diff --git a/sys_path_hacks/lms/course_api/blocks/forms.py b/sys_path_hacks/lms/course_api/blocks/forms.py index 1c88c89697..32c8e8a7fb 100644 --- a/sys_path_hacks/lms/course_api/blocks/forms.py +++ b/sys_path_hacks/lms/course_api/blocks/forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.forms instead of lms.djangoapps.course_api.blocks.forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.forms') from lms.djangoapps.course_api.blocks.forms import * diff --git a/sys_path_hacks/lms/course_api/blocks/permissions.py b/sys_path_hacks/lms/course_api/blocks/permissions.py index b4f6b7dadb..2af7084e10 100644 --- a/sys_path_hacks/lms/course_api/blocks/permissions.py +++ b/sys_path_hacks/lms/course_api/blocks/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.permissions instead of lms.djangoapps.course_api.blocks.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.permissions') from lms.djangoapps.course_api.blocks.permissions import * diff --git a/sys_path_hacks/lms/course_api/blocks/serializers.py b/sys_path_hacks/lms/course_api/blocks/serializers.py index be23c722ae..311669e638 100644 --- a/sys_path_hacks/lms/course_api/blocks/serializers.py +++ b/sys_path_hacks/lms/course_api/blocks/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.serializers instead of lms.djangoapps.course_api.blocks.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.serializers') from lms.djangoapps.course_api.blocks.serializers import * diff --git a/sys_path_hacks/lms/course_api/blocks/tests/__init__.py b/sys_path_hacks/lms/course_api/blocks/tests/__init__.py index dc1710425f..7d5e0e45da 100644 --- a/sys_path_hacks/lms/course_api/blocks/tests/__init__.py +++ b/sys_path_hacks/lms/course_api/blocks/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.tests instead of lms.djangoapps.course_api.blocks.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.tests') from lms.djangoapps.course_api.blocks.tests import * diff --git a/sys_path_hacks/lms/course_api/blocks/tests/helpers.py b/sys_path_hacks/lms/course_api/blocks/tests/helpers.py index ab8d6b2d27..fab8ab98b6 100644 --- a/sys_path_hacks/lms/course_api/blocks/tests/helpers.py +++ b/sys_path_hacks/lms/course_api/blocks/tests/helpers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.tests.helpers instead of lms.djangoapps.course_api.blocks.tests.helpers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.tests.helpers') from lms.djangoapps.course_api.blocks.tests.helpers import * diff --git a/sys_path_hacks/lms/course_api/blocks/tests/test_api.py b/sys_path_hacks/lms/course_api/blocks/tests/test_api.py index f7165bb69d..92ac4548a7 100644 --- a/sys_path_hacks/lms/course_api/blocks/tests/test_api.py +++ b/sys_path_hacks/lms/course_api/blocks/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.tests.test_api instead of lms.djangoapps.course_api.blocks.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.tests.test_api') from lms.djangoapps.course_api.blocks.tests.test_api import * diff --git a/sys_path_hacks/lms/course_api/blocks/tests/test_forms.py b/sys_path_hacks/lms/course_api/blocks/tests/test_forms.py index 9aef6694bb..89da2fb7d8 100644 --- a/sys_path_hacks/lms/course_api/blocks/tests/test_forms.py +++ b/sys_path_hacks/lms/course_api/blocks/tests/test_forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.tests.test_forms instead of lms.djangoapps.course_api.blocks.tests.test_forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.tests.test_forms') from lms.djangoapps.course_api.blocks.tests.test_forms import * diff --git a/sys_path_hacks/lms/course_api/blocks/tests/test_serializers.py b/sys_path_hacks/lms/course_api/blocks/tests/test_serializers.py index 0b50306e87..327f867244 100644 --- a/sys_path_hacks/lms/course_api/blocks/tests/test_serializers.py +++ b/sys_path_hacks/lms/course_api/blocks/tests/test_serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.tests.test_serializers instead of lms.djangoapps.course_api.blocks.tests.test_serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.tests.test_serializers') from lms.djangoapps.course_api.blocks.tests.test_serializers import * diff --git a/sys_path_hacks/lms/course_api/blocks/tests/test_views.py b/sys_path_hacks/lms/course_api/blocks/tests/test_views.py index 4d06ead125..628e2c9957 100644 --- a/sys_path_hacks/lms/course_api/blocks/tests/test_views.py +++ b/sys_path_hacks/lms/course_api/blocks/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.tests.test_views instead of lms.djangoapps.course_api.blocks.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.tests.test_views') from lms.djangoapps.course_api.blocks.tests.test_views import * diff --git a/sys_path_hacks/lms/course_api/blocks/toggles.py b/sys_path_hacks/lms/course_api/blocks/toggles.py index d327b26378..a5076313ec 100644 --- a/sys_path_hacks/lms/course_api/blocks/toggles.py +++ b/sys_path_hacks/lms/course_api/blocks/toggles.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.toggles instead of lms.djangoapps.course_api.blocks.toggles is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.toggles') from lms.djangoapps.course_api.blocks.toggles import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/__init__.py b/sys_path_hacks/lms/course_api/blocks/transformers/__init__.py index 71c0821b58..bec91ab3f2 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/__init__.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers instead of lms.djangoapps.course_api.blocks.transformers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers') from lms.djangoapps.course_api.blocks.transformers import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/block_completion.py b/sys_path_hacks/lms/course_api/blocks/transformers/block_completion.py index 3e465b188c..c8de213a8f 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/block_completion.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/block_completion.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.block_completion instead of lms.djangoapps.course_api.blocks.transformers.block_completion is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.block_completion') from lms.djangoapps.course_api.blocks.transformers.block_completion import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/block_counts.py b/sys_path_hacks/lms/course_api/blocks/transformers/block_counts.py index 8304d30d62..ba15039062 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/block_counts.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/block_counts.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.block_counts instead of lms.djangoapps.course_api.blocks.transformers.block_counts is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.block_counts') from lms.djangoapps.course_api.blocks.transformers.block_counts import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/block_depth.py b/sys_path_hacks/lms/course_api/blocks/transformers/block_depth.py index c9b15468e2..db9bb67ec2 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/block_depth.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/block_depth.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.block_depth instead of lms.djangoapps.course_api.blocks.transformers.block_depth is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.block_depth') from lms.djangoapps.course_api.blocks.transformers.block_depth import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/blocks_api.py b/sys_path_hacks/lms/course_api/blocks/transformers/blocks_api.py index 068e08f71a..ed903ebcea 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/blocks_api.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/blocks_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.blocks_api instead of lms.djangoapps.course_api.blocks.transformers.blocks_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.blocks_api') from lms.djangoapps.course_api.blocks.transformers.blocks_api import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/extra_fields.py b/sys_path_hacks/lms/course_api/blocks/transformers/extra_fields.py index 4f239d2267..02362cba94 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/extra_fields.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/extra_fields.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.extra_fields instead of lms.djangoapps.course_api.blocks.transformers.extra_fields is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.extra_fields') from lms.djangoapps.course_api.blocks.transformers.extra_fields import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/milestones.py b/sys_path_hacks/lms/course_api/blocks/transformers/milestones.py index 1b5170eedb..004a8a9053 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/milestones.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/milestones.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.milestones instead of lms.djangoapps.course_api.blocks.transformers.milestones is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.milestones') from lms.djangoapps.course_api.blocks.transformers.milestones import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/navigation.py b/sys_path_hacks/lms/course_api/blocks/transformers/navigation.py index 163431a76b..3f6ff6dced 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/navigation.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/navigation.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.navigation instead of lms.djangoapps.course_api.blocks.transformers.navigation is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.navigation') from lms.djangoapps.course_api.blocks.transformers.navigation import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/student_view.py b/sys_path_hacks/lms/course_api/blocks/transformers/student_view.py index 8bf6fa470d..f3289c624f 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/student_view.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/student_view.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.student_view instead of lms.djangoapps.course_api.blocks.transformers.student_view is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.student_view') from lms.djangoapps.course_api.blocks.transformers.student_view import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/__init__.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/__init__.py index 1bddd20e68..a3f407f466 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/__init__.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests instead of lms.djangoapps.course_api.blocks.transformers.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests') from lms.djangoapps.course_api.blocks.transformers.tests import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_completion.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_completion.py index da917a75af..2fd95878c1 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_completion.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_completion.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests.test_block_completion instead of lms.djangoapps.course_api.blocks.transformers.tests.test_block_completion is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests.test_block_completion') from lms.djangoapps.course_api.blocks.transformers.tests.test_block_completion import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_counts.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_counts.py index c8e19f1187..ac2f3d4d00 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_counts.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_counts.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests.test_block_counts instead of lms.djangoapps.course_api.blocks.transformers.tests.test_block_counts is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests.test_block_counts') from lms.djangoapps.course_api.blocks.transformers.tests.test_block_counts import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_depth.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_depth.py index ef078bf732..ef6a6f9e06 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_depth.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_block_depth.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests.test_block_depth instead of lms.djangoapps.course_api.blocks.transformers.tests.test_block_depth is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests.test_block_depth') from lms.djangoapps.course_api.blocks.transformers.tests.test_block_depth import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_extra_fields.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_extra_fields.py index 9ef79bc5bb..8aad3245e8 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_extra_fields.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_extra_fields.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests.test_extra_fields instead of lms.djangoapps.course_api.blocks.transformers.tests.test_extra_fields is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests.test_extra_fields') from lms.djangoapps.course_api.blocks.transformers.tests.test_extra_fields import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_milestones.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_milestones.py index 422926c441..e7c97e728f 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_milestones.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_milestones.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests.test_milestones instead of lms.djangoapps.course_api.blocks.transformers.tests.test_milestones is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests.test_milestones') from lms.djangoapps.course_api.blocks.transformers.tests.test_milestones import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_navigation.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_navigation.py index 7cf828e7f4..eb7ee71a44 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_navigation.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_navigation.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests.test_navigation instead of lms.djangoapps.course_api.blocks.transformers.tests.test_navigation is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests.test_navigation') from lms.djangoapps.course_api.blocks.transformers.tests.test_navigation import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_student_view.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_student_view.py index 060e262066..2f3e2b3133 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_student_view.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_student_view.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests.test_student_view instead of lms.djangoapps.course_api.blocks.transformers.tests.test_student_view is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests.test_student_view') from lms.djangoapps.course_api.blocks.transformers.tests.test_student_view import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_video_urls.py b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_video_urls.py index 6966341b23..dcf148900a 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_video_urls.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/tests/test_video_urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.tests.test_video_urls instead of lms.djangoapps.course_api.blocks.transformers.tests.test_video_urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.tests.test_video_urls') from lms.djangoapps.course_api.blocks.transformers.tests.test_video_urls import * diff --git a/sys_path_hacks/lms/course_api/blocks/transformers/video_urls.py b/sys_path_hacks/lms/course_api/blocks/transformers/video_urls.py index 9057cc15e6..0f5d8f1645 100644 --- a/sys_path_hacks/lms/course_api/blocks/transformers/video_urls.py +++ b/sys_path_hacks/lms/course_api/blocks/transformers/video_urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.transformers.video_urls instead of lms.djangoapps.course_api.blocks.transformers.video_urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.transformers.video_urls') from lms.djangoapps.course_api.blocks.transformers.video_urls import * diff --git a/sys_path_hacks/lms/course_api/blocks/urls.py b/sys_path_hacks/lms/course_api/blocks/urls.py index d6151df741..c7911cbe28 100644 --- a/sys_path_hacks/lms/course_api/blocks/urls.py +++ b/sys_path_hacks/lms/course_api/blocks/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.urls instead of lms.djangoapps.course_api.blocks.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.urls') from lms.djangoapps.course_api.blocks.urls import * diff --git a/sys_path_hacks/lms/course_api/blocks/views.py b/sys_path_hacks/lms/course_api/blocks/views.py index 1d65b3d4a3..3e6b34f041 100644 --- a/sys_path_hacks/lms/course_api/blocks/views.py +++ b/sys_path_hacks/lms/course_api/blocks/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.blocks.views instead of lms.djangoapps.course_api.blocks.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.blocks.views') from lms.djangoapps.course_api.blocks.views import * diff --git a/sys_path_hacks/lms/course_api/forms.py b/sys_path_hacks/lms/course_api/forms.py index 7379034e60..3cd966959e 100644 --- a/sys_path_hacks/lms/course_api/forms.py +++ b/sys_path_hacks/lms/course_api/forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.forms instead of lms.djangoapps.course_api.forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.forms') from lms.djangoapps.course_api.forms import * diff --git a/sys_path_hacks/lms/course_api/permissions.py b/sys_path_hacks/lms/course_api/permissions.py index d3280ec782..77c5a27aec 100644 --- a/sys_path_hacks/lms/course_api/permissions.py +++ b/sys_path_hacks/lms/course_api/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.permissions instead of lms.djangoapps.course_api.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.permissions') from lms.djangoapps.course_api.permissions import * diff --git a/sys_path_hacks/lms/course_api/serializers.py b/sys_path_hacks/lms/course_api/serializers.py index 4a9e36250a..2a3f67e6ba 100644 --- a/sys_path_hacks/lms/course_api/serializers.py +++ b/sys_path_hacks/lms/course_api/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.serializers instead of lms.djangoapps.course_api.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.serializers') from lms.djangoapps.course_api.serializers import * diff --git a/sys_path_hacks/lms/course_api/tests/__init__.py b/sys_path_hacks/lms/course_api/tests/__init__.py index 00b830a8cd..a8a54f22d1 100644 --- a/sys_path_hacks/lms/course_api/tests/__init__.py +++ b/sys_path_hacks/lms/course_api/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.tests instead of lms.djangoapps.course_api.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.tests') from lms.djangoapps.course_api.tests import * diff --git a/sys_path_hacks/lms/course_api/tests/mixins.py b/sys_path_hacks/lms/course_api/tests/mixins.py index 56d0c111d0..488708276b 100644 --- a/sys_path_hacks/lms/course_api/tests/mixins.py +++ b/sys_path_hacks/lms/course_api/tests/mixins.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.tests.mixins instead of lms.djangoapps.course_api.tests.mixins is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.tests.mixins') from lms.djangoapps.course_api.tests.mixins import * diff --git a/sys_path_hacks/lms/course_api/tests/test_api.py b/sys_path_hacks/lms/course_api/tests/test_api.py index 68c0df3b2c..30077d6c38 100644 --- a/sys_path_hacks/lms/course_api/tests/test_api.py +++ b/sys_path_hacks/lms/course_api/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.tests.test_api instead of lms.djangoapps.course_api.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.tests.test_api') from lms.djangoapps.course_api.tests.test_api import * diff --git a/sys_path_hacks/lms/course_api/tests/test_forms.py b/sys_path_hacks/lms/course_api/tests/test_forms.py index 49913abecf..d2323a228c 100644 --- a/sys_path_hacks/lms/course_api/tests/test_forms.py +++ b/sys_path_hacks/lms/course_api/tests/test_forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.tests.test_forms instead of lms.djangoapps.course_api.tests.test_forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.tests.test_forms') from lms.djangoapps.course_api.tests.test_forms import * diff --git a/sys_path_hacks/lms/course_api/tests/test_permissions.py b/sys_path_hacks/lms/course_api/tests/test_permissions.py index 2cc8d0eb98..4488096c96 100644 --- a/sys_path_hacks/lms/course_api/tests/test_permissions.py +++ b/sys_path_hacks/lms/course_api/tests/test_permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.tests.test_permissions instead of lms.djangoapps.course_api.tests.test_permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.tests.test_permissions') from lms.djangoapps.course_api.tests.test_permissions import * diff --git a/sys_path_hacks/lms/course_api/tests/test_serializers.py b/sys_path_hacks/lms/course_api/tests/test_serializers.py index 11ed3d4c4a..31aec8089c 100644 --- a/sys_path_hacks/lms/course_api/tests/test_serializers.py +++ b/sys_path_hacks/lms/course_api/tests/test_serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.tests.test_serializers instead of lms.djangoapps.course_api.tests.test_serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.tests.test_serializers') from lms.djangoapps.course_api.tests.test_serializers import * diff --git a/sys_path_hacks/lms/course_api/tests/test_views.py b/sys_path_hacks/lms/course_api/tests/test_views.py index f0304d5006..a5ba0f03db 100644 --- a/sys_path_hacks/lms/course_api/tests/test_views.py +++ b/sys_path_hacks/lms/course_api/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.tests.test_views instead of lms.djangoapps.course_api.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.tests.test_views') from lms.djangoapps.course_api.tests.test_views import * diff --git a/sys_path_hacks/lms/course_api/urls.py b/sys_path_hacks/lms/course_api/urls.py index ffe2acbc32..2246fa89ab 100644 --- a/sys_path_hacks/lms/course_api/urls.py +++ b/sys_path_hacks/lms/course_api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.urls instead of lms.djangoapps.course_api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.urls') from lms.djangoapps.course_api.urls import * diff --git a/sys_path_hacks/lms/course_api/views.py b/sys_path_hacks/lms/course_api/views.py index e9241eff6c..6e10e4045f 100644 --- a/sys_path_hacks/lms/course_api/views.py +++ b/sys_path_hacks/lms/course_api/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_api.views instead of lms.djangoapps.course_api.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_api.views') from lms.djangoapps.course_api.views import * diff --git a/sys_path_hacks/lms/course_blocks/__init__.py b/sys_path_hacks/lms/course_blocks/__init__.py index 135232544e..dd2e753120 100644 --- a/sys_path_hacks/lms/course_blocks/__init__.py +++ b/sys_path_hacks/lms/course_blocks/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks instead of lms.djangoapps.course_blocks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks') from lms.djangoapps.course_blocks import * diff --git a/sys_path_hacks/lms/course_blocks/api.py b/sys_path_hacks/lms/course_blocks/api.py index 0cf364cb97..eb79b0ca1d 100644 --- a/sys_path_hacks/lms/course_blocks/api.py +++ b/sys_path_hacks/lms/course_blocks/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.api instead of lms.djangoapps.course_blocks.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.api') from lms.djangoapps.course_blocks.api import * diff --git a/sys_path_hacks/lms/course_blocks/tests/__init__.py b/sys_path_hacks/lms/course_blocks/tests/__init__.py index d8c26b792b..fcbb631d87 100644 --- a/sys_path_hacks/lms/course_blocks/tests/__init__.py +++ b/sys_path_hacks/lms/course_blocks/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.tests instead of lms.djangoapps.course_blocks.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.tests') from lms.djangoapps.course_blocks.tests import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/__init__.py b/sys_path_hacks/lms/course_blocks/transformers/__init__.py index d1ce3be08f..44ea68be7a 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/__init__.py +++ b/sys_path_hacks/lms/course_blocks/transformers/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers instead of lms.djangoapps.course_blocks.transformers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers') from lms.djangoapps.course_blocks.transformers import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/access_denied_filter.py b/sys_path_hacks/lms/course_blocks/transformers/access_denied_filter.py index 5aeebe7aa8..b2bed88a20 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/access_denied_filter.py +++ b/sys_path_hacks/lms/course_blocks/transformers/access_denied_filter.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.access_denied_filter instead of lms.djangoapps.course_blocks.transformers.access_denied_filter is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.access_denied_filter') from lms.djangoapps.course_blocks.transformers.access_denied_filter import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/hidden_content.py b/sys_path_hacks/lms/course_blocks/transformers/hidden_content.py index d8ca1151db..d5fc99fc7f 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/hidden_content.py +++ b/sys_path_hacks/lms/course_blocks/transformers/hidden_content.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.hidden_content instead of lms.djangoapps.course_blocks.transformers.hidden_content is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.hidden_content') from lms.djangoapps.course_blocks.transformers.hidden_content import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/hide_empty.py b/sys_path_hacks/lms/course_blocks/transformers/hide_empty.py index 675232a959..f7d0025008 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/hide_empty.py +++ b/sys_path_hacks/lms/course_blocks/transformers/hide_empty.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.hide_empty instead of lms.djangoapps.course_blocks.transformers.hide_empty is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.hide_empty') from lms.djangoapps.course_blocks.transformers.hide_empty import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/library_content.py b/sys_path_hacks/lms/course_blocks/transformers/library_content.py index 18b3677e84..0047a7b20f 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/library_content.py +++ b/sys_path_hacks/lms/course_blocks/transformers/library_content.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.library_content instead of lms.djangoapps.course_blocks.transformers.library_content is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.library_content') from lms.djangoapps.course_blocks.transformers.library_content import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/load_override_data.py b/sys_path_hacks/lms/course_blocks/transformers/load_override_data.py index b09f9ee557..a2f175ac41 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/load_override_data.py +++ b/sys_path_hacks/lms/course_blocks/transformers/load_override_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.load_override_data instead of lms.djangoapps.course_blocks.transformers.load_override_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.load_override_data') from lms.djangoapps.course_blocks.transformers.load_override_data import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/split_test.py b/sys_path_hacks/lms/course_blocks/transformers/split_test.py index ef1a2c2cf4..fb8604cd95 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/split_test.py +++ b/sys_path_hacks/lms/course_blocks/transformers/split_test.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.split_test instead of lms.djangoapps.course_blocks.transformers.split_test is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.split_test') from lms.djangoapps.course_blocks.transformers.split_test import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/start_date.py b/sys_path_hacks/lms/course_blocks/transformers/start_date.py index b71d9f1c24..d62ff3b86d 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/start_date.py +++ b/sys_path_hacks/lms/course_blocks/transformers/start_date.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.start_date instead of lms.djangoapps.course_blocks.transformers.start_date is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.start_date') from lms.djangoapps.course_blocks.transformers.start_date import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/__init__.py b/sys_path_hacks/lms/course_blocks/transformers/tests/__init__.py index d17cc69433..f22cdebfff 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/__init__.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests instead of lms.djangoapps.course_blocks.transformers.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests') from lms.djangoapps.course_blocks.transformers.tests import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/helpers.py b/sys_path_hacks/lms/course_blocks/transformers/tests/helpers.py index a1310a761a..a35a282493 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/helpers.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/helpers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests.helpers instead of lms.djangoapps.course_blocks.transformers.tests.helpers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests.helpers') from lms.djangoapps.course_blocks.transformers.tests.helpers import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/test_hidden_content.py b/sys_path_hacks/lms/course_blocks/transformers/tests/test_hidden_content.py index c07abc3a33..b317c9e6b9 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/test_hidden_content.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/test_hidden_content.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests.test_hidden_content instead of lms.djangoapps.course_blocks.transformers.tests.test_hidden_content is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests.test_hidden_content') from lms.djangoapps.course_blocks.transformers.tests.test_hidden_content import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/test_library_content.py b/sys_path_hacks/lms/course_blocks/transformers/tests/test_library_content.py index 11adc2ab8e..c7f83fc1fc 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/test_library_content.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/test_library_content.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests.test_library_content instead of lms.djangoapps.course_blocks.transformers.tests.test_library_content is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests.test_library_content') from lms.djangoapps.course_blocks.transformers.tests.test_library_content import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/test_load_override_data.py b/sys_path_hacks/lms/course_blocks/transformers/tests/test_load_override_data.py index 5763a64e6a..80fb9b1a93 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/test_load_override_data.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/test_load_override_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests.test_load_override_data instead of lms.djangoapps.course_blocks.transformers.tests.test_load_override_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests.test_load_override_data') from lms.djangoapps.course_blocks.transformers.tests.test_load_override_data import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/test_split_test.py b/sys_path_hacks/lms/course_blocks/transformers/tests/test_split_test.py index e3fd80b508..d64cd62377 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/test_split_test.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/test_split_test.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests.test_split_test instead of lms.djangoapps.course_blocks.transformers.tests.test_split_test is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests.test_split_test') from lms.djangoapps.course_blocks.transformers.tests.test_split_test import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/test_start_date.py b/sys_path_hacks/lms/course_blocks/transformers/tests/test_start_date.py index fe42de267a..5c3ff0bb22 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/test_start_date.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/test_start_date.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests.test_start_date instead of lms.djangoapps.course_blocks.transformers.tests.test_start_date is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests.test_start_date') from lms.djangoapps.course_blocks.transformers.tests.test_start_date import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/test_user_partitions.py b/sys_path_hacks/lms/course_blocks/transformers/tests/test_user_partitions.py index 16aa1b6af9..53746b3623 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/test_user_partitions.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/test_user_partitions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests.test_user_partitions instead of lms.djangoapps.course_blocks.transformers.tests.test_user_partitions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests.test_user_partitions') from lms.djangoapps.course_blocks.transformers.tests.test_user_partitions import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/tests/test_visibility.py b/sys_path_hacks/lms/course_blocks/transformers/tests/test_visibility.py index a84fefe659..e526a6310e 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/tests/test_visibility.py +++ b/sys_path_hacks/lms/course_blocks/transformers/tests/test_visibility.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.tests.test_visibility instead of lms.djangoapps.course_blocks.transformers.tests.test_visibility is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.tests.test_visibility') from lms.djangoapps.course_blocks.transformers.tests.test_visibility import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/user_partitions.py b/sys_path_hacks/lms/course_blocks/transformers/user_partitions.py index df520b9dd4..ed27fa6d07 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/user_partitions.py +++ b/sys_path_hacks/lms/course_blocks/transformers/user_partitions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.user_partitions instead of lms.djangoapps.course_blocks.transformers.user_partitions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.user_partitions') from lms.djangoapps.course_blocks.transformers.user_partitions import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/utils.py b/sys_path_hacks/lms/course_blocks/transformers/utils.py index 5ed3b9f93a..f53716557c 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/utils.py +++ b/sys_path_hacks/lms/course_blocks/transformers/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.utils instead of lms.djangoapps.course_blocks.transformers.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.utils') from lms.djangoapps.course_blocks.transformers.utils import * diff --git a/sys_path_hacks/lms/course_blocks/transformers/visibility.py b/sys_path_hacks/lms/course_blocks/transformers/visibility.py index 60eeadfc83..014e6bf7c3 100644 --- a/sys_path_hacks/lms/course_blocks/transformers/visibility.py +++ b/sys_path_hacks/lms/course_blocks/transformers/visibility.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.transformers.visibility instead of lms.djangoapps.course_blocks.transformers.visibility is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.transformers.visibility') from lms.djangoapps.course_blocks.transformers.visibility import * diff --git a/sys_path_hacks/lms/course_blocks/usage_info.py b/sys_path_hacks/lms/course_blocks/usage_info.py index a2b1f0e3b4..20c33843fc 100644 --- a/sys_path_hacks/lms/course_blocks/usage_info.py +++ b/sys_path_hacks/lms/course_blocks/usage_info.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.usage_info instead of lms.djangoapps.course_blocks.usage_info is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.usage_info') from lms.djangoapps.course_blocks.usage_info import * diff --git a/sys_path_hacks/lms/course_blocks/utils.py b/sys_path_hacks/lms/course_blocks/utils.py index fa6562e756..27fd90fa2a 100644 --- a/sys_path_hacks/lms/course_blocks/utils.py +++ b/sys_path_hacks/lms/course_blocks/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_blocks.utils instead of lms.djangoapps.course_blocks.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_blocks.utils') from lms.djangoapps.course_blocks.utils import * diff --git a/sys_path_hacks/lms/course_goals/__init__.py b/sys_path_hacks/lms/course_goals/__init__.py index b5cc701860..c5f271eaa4 100644 --- a/sys_path_hacks/lms/course_goals/__init__.py +++ b/sys_path_hacks/lms/course_goals/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals instead of lms.djangoapps.course_goals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals') from lms.djangoapps.course_goals import * diff --git a/sys_path_hacks/lms/course_goals/api.py b/sys_path_hacks/lms/course_goals/api.py index c36e2a5802..fa54cdf95d 100644 --- a/sys_path_hacks/lms/course_goals/api.py +++ b/sys_path_hacks/lms/course_goals/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals.api instead of lms.djangoapps.course_goals.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals.api') from lms.djangoapps.course_goals.api import * diff --git a/sys_path_hacks/lms/course_goals/apps.py b/sys_path_hacks/lms/course_goals/apps.py index 44f7767943..8948eea14f 100644 --- a/sys_path_hacks/lms/course_goals/apps.py +++ b/sys_path_hacks/lms/course_goals/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals.apps instead of lms.djangoapps.course_goals.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals.apps') from lms.djangoapps.course_goals.apps import * diff --git a/sys_path_hacks/lms/course_goals/handlers.py b/sys_path_hacks/lms/course_goals/handlers.py index bee003dd25..9adcea1a63 100644 --- a/sys_path_hacks/lms/course_goals/handlers.py +++ b/sys_path_hacks/lms/course_goals/handlers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals.handlers instead of lms.djangoapps.course_goals.handlers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals.handlers') from lms.djangoapps.course_goals.handlers import * diff --git a/sys_path_hacks/lms/course_goals/models.py b/sys_path_hacks/lms/course_goals/models.py index 43e255965f..89ddf47977 100644 --- a/sys_path_hacks/lms/course_goals/models.py +++ b/sys_path_hacks/lms/course_goals/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals.models instead of lms.djangoapps.course_goals.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals.models') from lms.djangoapps.course_goals.models import * diff --git a/sys_path_hacks/lms/course_goals/tests/__init__.py b/sys_path_hacks/lms/course_goals/tests/__init__.py index 37094179dd..92de4c9669 100644 --- a/sys_path_hacks/lms/course_goals/tests/__init__.py +++ b/sys_path_hacks/lms/course_goals/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals.tests instead of lms.djangoapps.course_goals.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals.tests') from lms.djangoapps.course_goals.tests import * diff --git a/sys_path_hacks/lms/course_goals/tests/test_api.py b/sys_path_hacks/lms/course_goals/tests/test_api.py index 93e73700cb..43858858cc 100644 --- a/sys_path_hacks/lms/course_goals/tests/test_api.py +++ b/sys_path_hacks/lms/course_goals/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals.tests.test_api instead of lms.djangoapps.course_goals.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals.tests.test_api') from lms.djangoapps.course_goals.tests.test_api import * diff --git a/sys_path_hacks/lms/course_goals/urls.py b/sys_path_hacks/lms/course_goals/urls.py index 9caa764f56..e6e2f5ce91 100644 --- a/sys_path_hacks/lms/course_goals/urls.py +++ b/sys_path_hacks/lms/course_goals/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals.urls instead of lms.djangoapps.course_goals.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals.urls') from lms.djangoapps.course_goals.urls import * diff --git a/sys_path_hacks/lms/course_goals/views.py b/sys_path_hacks/lms/course_goals/views.py index 464033ea06..542af828b0 100644 --- a/sys_path_hacks/lms/course_goals/views.py +++ b/sys_path_hacks/lms/course_goals/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_goals.views instead of lms.djangoapps.course_goals.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_goals.views') from lms.djangoapps.course_goals.views import * diff --git a/sys_path_hacks/lms/course_home_api/__init__.py b/sys_path_hacks/lms/course_home_api/__init__.py index f96836424a..2936bd9134 100644 --- a/sys_path_hacks/lms/course_home_api/__init__.py +++ b/sys_path_hacks/lms/course_home_api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api instead of lms.djangoapps.course_home_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api') from lms.djangoapps.course_home_api import * diff --git a/sys_path_hacks/lms/course_home_api/course_metadata/__init__.py b/sys_path_hacks/lms/course_home_api/course_metadata/__init__.py index bf978d796f..a87c29e953 100644 --- a/sys_path_hacks/lms/course_home_api/course_metadata/__init__.py +++ b/sys_path_hacks/lms/course_home_api/course_metadata/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.course_metadata instead of lms.djangoapps.course_home_api.course_metadata is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.course_metadata') from lms.djangoapps.course_home_api.course_metadata import * diff --git a/sys_path_hacks/lms/course_home_api/course_metadata/v1/__init__.py b/sys_path_hacks/lms/course_home_api/course_metadata/v1/__init__.py index 8c1e4f8e9f..6b4b096283 100644 --- a/sys_path_hacks/lms/course_home_api/course_metadata/v1/__init__.py +++ b/sys_path_hacks/lms/course_home_api/course_metadata/v1/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.course_metadata.v1 instead of lms.djangoapps.course_home_api.course_metadata.v1 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.course_metadata.v1') from lms.djangoapps.course_home_api.course_metadata.v1 import * diff --git a/sys_path_hacks/lms/course_home_api/course_metadata/v1/serializers.py b/sys_path_hacks/lms/course_home_api/course_metadata/v1/serializers.py index 51ece76898..eecb4fc6db 100644 --- a/sys_path_hacks/lms/course_home_api/course_metadata/v1/serializers.py +++ b/sys_path_hacks/lms/course_home_api/course_metadata/v1/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.course_metadata.v1.serializers instead of lms.djangoapps.course_home_api.course_metadata.v1.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.course_metadata.v1.serializers') from lms.djangoapps.course_home_api.course_metadata.v1.serializers import * diff --git a/sys_path_hacks/lms/course_home_api/course_metadata/v1/tests/__init__.py b/sys_path_hacks/lms/course_home_api/course_metadata/v1/tests/__init__.py index c9369df6e1..4f2f90feb6 100644 --- a/sys_path_hacks/lms/course_home_api/course_metadata/v1/tests/__init__.py +++ b/sys_path_hacks/lms/course_home_api/course_metadata/v1/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.course_metadata.v1.tests instead of lms.djangoapps.course_home_api.course_metadata.v1.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.course_metadata.v1.tests') from lms.djangoapps.course_home_api.course_metadata.v1.tests import * diff --git a/sys_path_hacks/lms/course_home_api/course_metadata/v1/tests/test_views.py b/sys_path_hacks/lms/course_home_api/course_metadata/v1/tests/test_views.py index 43eeb05376..4b16cee679 100644 --- a/sys_path_hacks/lms/course_home_api/course_metadata/v1/tests/test_views.py +++ b/sys_path_hacks/lms/course_home_api/course_metadata/v1/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.course_metadata.v1.tests.test_views instead of lms.djangoapps.course_home_api.course_metadata.v1.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.course_metadata.v1.tests.test_views') from lms.djangoapps.course_home_api.course_metadata.v1.tests.test_views import * diff --git a/sys_path_hacks/lms/course_home_api/course_metadata/v1/views.py b/sys_path_hacks/lms/course_home_api/course_metadata/v1/views.py index 622e7185fb..d2c8aa6ee8 100644 --- a/sys_path_hacks/lms/course_home_api/course_metadata/v1/views.py +++ b/sys_path_hacks/lms/course_home_api/course_metadata/v1/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.course_metadata.v1.views instead of lms.djangoapps.course_home_api.course_metadata.v1.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.course_metadata.v1.views') from lms.djangoapps.course_home_api.course_metadata.v1.views import * diff --git a/sys_path_hacks/lms/course_home_api/dates/__init__.py b/sys_path_hacks/lms/course_home_api/dates/__init__.py index 6b04e82b98..0b9de969ba 100644 --- a/sys_path_hacks/lms/course_home_api/dates/__init__.py +++ b/sys_path_hacks/lms/course_home_api/dates/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.dates instead of lms.djangoapps.course_home_api.dates is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.dates') from lms.djangoapps.course_home_api.dates import * diff --git a/sys_path_hacks/lms/course_home_api/dates/v1/__init__.py b/sys_path_hacks/lms/course_home_api/dates/v1/__init__.py index 5464330544..cb496bd579 100644 --- a/sys_path_hacks/lms/course_home_api/dates/v1/__init__.py +++ b/sys_path_hacks/lms/course_home_api/dates/v1/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.dates.v1 instead of lms.djangoapps.course_home_api.dates.v1 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.dates.v1') from lms.djangoapps.course_home_api.dates.v1 import * diff --git a/sys_path_hacks/lms/course_home_api/dates/v1/serializers.py b/sys_path_hacks/lms/course_home_api/dates/v1/serializers.py index c63721d4c8..210142102e 100644 --- a/sys_path_hacks/lms/course_home_api/dates/v1/serializers.py +++ b/sys_path_hacks/lms/course_home_api/dates/v1/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.dates.v1.serializers instead of lms.djangoapps.course_home_api.dates.v1.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.dates.v1.serializers') from lms.djangoapps.course_home_api.dates.v1.serializers import * diff --git a/sys_path_hacks/lms/course_home_api/dates/v1/tests/__init__.py b/sys_path_hacks/lms/course_home_api/dates/v1/tests/__init__.py index 5a96909f12..5e4ac7db79 100644 --- a/sys_path_hacks/lms/course_home_api/dates/v1/tests/__init__.py +++ b/sys_path_hacks/lms/course_home_api/dates/v1/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.dates.v1.tests instead of lms.djangoapps.course_home_api.dates.v1.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.dates.v1.tests') from lms.djangoapps.course_home_api.dates.v1.tests import * diff --git a/sys_path_hacks/lms/course_home_api/dates/v1/tests/test_views.py b/sys_path_hacks/lms/course_home_api/dates/v1/tests/test_views.py index df68ab6519..2406b205d7 100644 --- a/sys_path_hacks/lms/course_home_api/dates/v1/tests/test_views.py +++ b/sys_path_hacks/lms/course_home_api/dates/v1/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.dates.v1.tests.test_views instead of lms.djangoapps.course_home_api.dates.v1.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.dates.v1.tests.test_views') from lms.djangoapps.course_home_api.dates.v1.tests.test_views import * diff --git a/sys_path_hacks/lms/course_home_api/dates/v1/views.py b/sys_path_hacks/lms/course_home_api/dates/v1/views.py index 98446e6315..29649906a6 100644 --- a/sys_path_hacks/lms/course_home_api/dates/v1/views.py +++ b/sys_path_hacks/lms/course_home_api/dates/v1/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.dates.v1.views instead of lms.djangoapps.course_home_api.dates.v1.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.dates.v1.views') from lms.djangoapps.course_home_api.dates.v1.views import * diff --git a/sys_path_hacks/lms/course_home_api/mixins.py b/sys_path_hacks/lms/course_home_api/mixins.py index fb633d635b..1d3a018186 100644 --- a/sys_path_hacks/lms/course_home_api/mixins.py +++ b/sys_path_hacks/lms/course_home_api/mixins.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.mixins instead of lms.djangoapps.course_home_api.mixins is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.mixins') from lms.djangoapps.course_home_api.mixins import * diff --git a/sys_path_hacks/lms/course_home_api/outline/v1/serializers.py b/sys_path_hacks/lms/course_home_api/outline/v1/serializers.py index 626292ee21..5453efc1b0 100644 --- a/sys_path_hacks/lms/course_home_api/outline/v1/serializers.py +++ b/sys_path_hacks/lms/course_home_api/outline/v1/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.outline.v1.serializers instead of lms.djangoapps.course_home_api.outline.v1.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.outline.v1.serializers') from lms.djangoapps.course_home_api.outline.v1.serializers import * diff --git a/sys_path_hacks/lms/course_home_api/outline/v1/tests/__init__.py b/sys_path_hacks/lms/course_home_api/outline/v1/tests/__init__.py index c1ebff74e0..7f08d214b7 100644 --- a/sys_path_hacks/lms/course_home_api/outline/v1/tests/__init__.py +++ b/sys_path_hacks/lms/course_home_api/outline/v1/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.outline.v1.tests instead of lms.djangoapps.course_home_api.outline.v1.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.outline.v1.tests') from lms.djangoapps.course_home_api.outline.v1.tests import * diff --git a/sys_path_hacks/lms/course_home_api/outline/v1/tests/test_views.py b/sys_path_hacks/lms/course_home_api/outline/v1/tests/test_views.py index d6492c30f7..679a0b3901 100644 --- a/sys_path_hacks/lms/course_home_api/outline/v1/tests/test_views.py +++ b/sys_path_hacks/lms/course_home_api/outline/v1/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.outline.v1.tests.test_views instead of lms.djangoapps.course_home_api.outline.v1.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.outline.v1.tests.test_views') from lms.djangoapps.course_home_api.outline.v1.tests.test_views import * diff --git a/sys_path_hacks/lms/course_home_api/outline/v1/views.py b/sys_path_hacks/lms/course_home_api/outline/v1/views.py index aa74e278d7..b8c10488af 100644 --- a/sys_path_hacks/lms/course_home_api/outline/v1/views.py +++ b/sys_path_hacks/lms/course_home_api/outline/v1/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.outline.v1.views instead of lms.djangoapps.course_home_api.outline.v1.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.outline.v1.views') from lms.djangoapps.course_home_api.outline.v1.views import * diff --git a/sys_path_hacks/lms/course_home_api/progress/v1/__init__.py b/sys_path_hacks/lms/course_home_api/progress/v1/__init__.py index 38f8c33191..16057b450e 100644 --- a/sys_path_hacks/lms/course_home_api/progress/v1/__init__.py +++ b/sys_path_hacks/lms/course_home_api/progress/v1/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.progress.v1 instead of lms.djangoapps.course_home_api.progress.v1 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.progress.v1') from lms.djangoapps.course_home_api.progress.v1 import * diff --git a/sys_path_hacks/lms/course_home_api/progress/v1/serializers.py b/sys_path_hacks/lms/course_home_api/progress/v1/serializers.py index 1dc6bdaeed..795769f046 100644 --- a/sys_path_hacks/lms/course_home_api/progress/v1/serializers.py +++ b/sys_path_hacks/lms/course_home_api/progress/v1/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.progress.v1.serializers instead of lms.djangoapps.course_home_api.progress.v1.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.progress.v1.serializers') from lms.djangoapps.course_home_api.progress.v1.serializers import * diff --git a/sys_path_hacks/lms/course_home_api/progress/v1/tests/__init__.py b/sys_path_hacks/lms/course_home_api/progress/v1/tests/__init__.py index 424da962f9..184685a8fd 100644 --- a/sys_path_hacks/lms/course_home_api/progress/v1/tests/__init__.py +++ b/sys_path_hacks/lms/course_home_api/progress/v1/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.progress.v1.tests instead of lms.djangoapps.course_home_api.progress.v1.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.progress.v1.tests') from lms.djangoapps.course_home_api.progress.v1.tests import * diff --git a/sys_path_hacks/lms/course_home_api/progress/v1/tests/test_views.py b/sys_path_hacks/lms/course_home_api/progress/v1/tests/test_views.py index a4523988a5..605e3119e4 100644 --- a/sys_path_hacks/lms/course_home_api/progress/v1/tests/test_views.py +++ b/sys_path_hacks/lms/course_home_api/progress/v1/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.progress.v1.tests.test_views instead of lms.djangoapps.course_home_api.progress.v1.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.progress.v1.tests.test_views') from lms.djangoapps.course_home_api.progress.v1.tests.test_views import * diff --git a/sys_path_hacks/lms/course_home_api/progress/v1/views.py b/sys_path_hacks/lms/course_home_api/progress/v1/views.py index d1b586d7e7..65e6429740 100644 --- a/sys_path_hacks/lms/course_home_api/progress/v1/views.py +++ b/sys_path_hacks/lms/course_home_api/progress/v1/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.progress.v1.views instead of lms.djangoapps.course_home_api.progress.v1.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.progress.v1.views') from lms.djangoapps.course_home_api.progress.v1.views import * diff --git a/sys_path_hacks/lms/course_home_api/tests/__init__.py b/sys_path_hacks/lms/course_home_api/tests/__init__.py index ffe6d13a7b..eedd3f7175 100644 --- a/sys_path_hacks/lms/course_home_api/tests/__init__.py +++ b/sys_path_hacks/lms/course_home_api/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.tests instead of lms.djangoapps.course_home_api.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.tests') from lms.djangoapps.course_home_api.tests import * diff --git a/sys_path_hacks/lms/course_home_api/tests/utils.py b/sys_path_hacks/lms/course_home_api/tests/utils.py index 13524d76d3..b18db70db6 100644 --- a/sys_path_hacks/lms/course_home_api/tests/utils.py +++ b/sys_path_hacks/lms/course_home_api/tests/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.tests.utils instead of lms.djangoapps.course_home_api.tests.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.tests.utils') from lms.djangoapps.course_home_api.tests.utils import * diff --git a/sys_path_hacks/lms/course_home_api/toggles.py b/sys_path_hacks/lms/course_home_api/toggles.py index 96c5b940c4..fc1d123cfe 100644 --- a/sys_path_hacks/lms/course_home_api/toggles.py +++ b/sys_path_hacks/lms/course_home_api/toggles.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.toggles instead of lms.djangoapps.course_home_api.toggles is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.toggles') from lms.djangoapps.course_home_api.toggles import * diff --git a/sys_path_hacks/lms/course_home_api/urls.py b/sys_path_hacks/lms/course_home_api/urls.py index f7b640cae6..b5317c6408 100644 --- a/sys_path_hacks/lms/course_home_api/urls.py +++ b/sys_path_hacks/lms/course_home_api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.urls instead of lms.djangoapps.course_home_api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.urls') from lms.djangoapps.course_home_api.urls import * diff --git a/sys_path_hacks/lms/course_home_api/utils.py b/sys_path_hacks/lms/course_home_api/utils.py index 29870f971a..c9b60fec55 100644 --- a/sys_path_hacks/lms/course_home_api/utils.py +++ b/sys_path_hacks/lms/course_home_api/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_home_api.utils instead of lms.djangoapps.course_home_api.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_home_api.utils') from lms.djangoapps.course_home_api.utils import * diff --git a/sys_path_hacks/lms/course_wiki/__init__.py b/sys_path_hacks/lms/course_wiki/__init__.py index 82992c63cb..976fa33413 100644 --- a/sys_path_hacks/lms/course_wiki/__init__.py +++ b/sys_path_hacks/lms/course_wiki/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki instead of lms.djangoapps.course_wiki is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki') from lms.djangoapps.course_wiki import * diff --git a/sys_path_hacks/lms/course_wiki/editors.py b/sys_path_hacks/lms/course_wiki/editors.py index dd60edf17e..0285da0cf5 100644 --- a/sys_path_hacks/lms/course_wiki/editors.py +++ b/sys_path_hacks/lms/course_wiki/editors.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.editors instead of lms.djangoapps.course_wiki.editors is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.editors') from lms.djangoapps.course_wiki.editors import * diff --git a/sys_path_hacks/lms/course_wiki/middleware.py b/sys_path_hacks/lms/course_wiki/middleware.py index 4d578032cf..4feca38e41 100644 --- a/sys_path_hacks/lms/course_wiki/middleware.py +++ b/sys_path_hacks/lms/course_wiki/middleware.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.middleware instead of lms.djangoapps.course_wiki.middleware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.middleware') from lms.djangoapps.course_wiki.middleware import * diff --git a/sys_path_hacks/lms/course_wiki/plugins/__init__.py b/sys_path_hacks/lms/course_wiki/plugins/__init__.py index d1a644e4db..f7107e553c 100644 --- a/sys_path_hacks/lms/course_wiki/plugins/__init__.py +++ b/sys_path_hacks/lms/course_wiki/plugins/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.plugins instead of lms.djangoapps.course_wiki.plugins is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.plugins') from lms.djangoapps.course_wiki.plugins import * diff --git a/sys_path_hacks/lms/course_wiki/plugins/markdownedx/__init__.py b/sys_path_hacks/lms/course_wiki/plugins/markdownedx/__init__.py index 2cca341b29..ca6fe498a4 100644 --- a/sys_path_hacks/lms/course_wiki/plugins/markdownedx/__init__.py +++ b/sys_path_hacks/lms/course_wiki/plugins/markdownedx/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.plugins.markdownedx instead of lms.djangoapps.course_wiki.plugins.markdownedx is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.plugins.markdownedx') from lms.djangoapps.course_wiki.plugins.markdownedx import * diff --git a/sys_path_hacks/lms/course_wiki/plugins/markdownedx/mdx_mathjax.py b/sys_path_hacks/lms/course_wiki/plugins/markdownedx/mdx_mathjax.py index c290b91d10..be85125b55 100644 --- a/sys_path_hacks/lms/course_wiki/plugins/markdownedx/mdx_mathjax.py +++ b/sys_path_hacks/lms/course_wiki/plugins/markdownedx/mdx_mathjax.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.plugins.markdownedx.mdx_mathjax instead of lms.djangoapps.course_wiki.plugins.markdownedx.mdx_mathjax is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.plugins.markdownedx.mdx_mathjax') from lms.djangoapps.course_wiki.plugins.markdownedx.mdx_mathjax import * diff --git a/sys_path_hacks/lms/course_wiki/plugins/markdownedx/mdx_video.py b/sys_path_hacks/lms/course_wiki/plugins/markdownedx/mdx_video.py index 3609c3e3c3..defe1c253f 100644 --- a/sys_path_hacks/lms/course_wiki/plugins/markdownedx/mdx_video.py +++ b/sys_path_hacks/lms/course_wiki/plugins/markdownedx/mdx_video.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.plugins.markdownedx.mdx_video instead of lms.djangoapps.course_wiki.plugins.markdownedx.mdx_video is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.plugins.markdownedx.mdx_video') from lms.djangoapps.course_wiki.plugins.markdownedx.mdx_video import * diff --git a/sys_path_hacks/lms/course_wiki/plugins/markdownedx/wiki_plugin.py b/sys_path_hacks/lms/course_wiki/plugins/markdownedx/wiki_plugin.py index 5d6a67c48d..a3dd9f127f 100644 --- a/sys_path_hacks/lms/course_wiki/plugins/markdownedx/wiki_plugin.py +++ b/sys_path_hacks/lms/course_wiki/plugins/markdownedx/wiki_plugin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.plugins.markdownedx.wiki_plugin instead of lms.djangoapps.course_wiki.plugins.markdownedx.wiki_plugin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.plugins.markdownedx.wiki_plugin') from lms.djangoapps.course_wiki.plugins.markdownedx.wiki_plugin import * diff --git a/sys_path_hacks/lms/course_wiki/settings.py b/sys_path_hacks/lms/course_wiki/settings.py index d3d6ab0961..fa5d9520f8 100644 --- a/sys_path_hacks/lms/course_wiki/settings.py +++ b/sys_path_hacks/lms/course_wiki/settings.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.settings instead of lms.djangoapps.course_wiki.settings is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.settings') from lms.djangoapps.course_wiki.settings import * diff --git a/sys_path_hacks/lms/course_wiki/tab.py b/sys_path_hacks/lms/course_wiki/tab.py index 8d8bca8c8e..592e0c4adf 100644 --- a/sys_path_hacks/lms/course_wiki/tab.py +++ b/sys_path_hacks/lms/course_wiki/tab.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.tab instead of lms.djangoapps.course_wiki.tab is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.tab') from lms.djangoapps.course_wiki.tab import * diff --git a/sys_path_hacks/lms/course_wiki/tests/__init__.py b/sys_path_hacks/lms/course_wiki/tests/__init__.py index a7ab887a03..44d16cdb4c 100644 --- a/sys_path_hacks/lms/course_wiki/tests/__init__.py +++ b/sys_path_hacks/lms/course_wiki/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.tests instead of lms.djangoapps.course_wiki.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.tests') from lms.djangoapps.course_wiki.tests import * diff --git a/sys_path_hacks/lms/course_wiki/tests/test_access.py b/sys_path_hacks/lms/course_wiki/tests/test_access.py index 11bd36dce2..2145fb6c65 100644 --- a/sys_path_hacks/lms/course_wiki/tests/test_access.py +++ b/sys_path_hacks/lms/course_wiki/tests/test_access.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.tests.test_access instead of lms.djangoapps.course_wiki.tests.test_access is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.tests.test_access') from lms.djangoapps.course_wiki.tests.test_access import * diff --git a/sys_path_hacks/lms/course_wiki/tests/test_comprehensive_theming.py b/sys_path_hacks/lms/course_wiki/tests/test_comprehensive_theming.py index e8ed17a622..2580b24eaf 100644 --- a/sys_path_hacks/lms/course_wiki/tests/test_comprehensive_theming.py +++ b/sys_path_hacks/lms/course_wiki/tests/test_comprehensive_theming.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.tests.test_comprehensive_theming instead of lms.djangoapps.course_wiki.tests.test_comprehensive_theming is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.tests.test_comprehensive_theming') from lms.djangoapps.course_wiki.tests.test_comprehensive_theming import * diff --git a/sys_path_hacks/lms/course_wiki/tests/test_middleware.py b/sys_path_hacks/lms/course_wiki/tests/test_middleware.py index b46e7fc3d6..c025facde2 100644 --- a/sys_path_hacks/lms/course_wiki/tests/test_middleware.py +++ b/sys_path_hacks/lms/course_wiki/tests/test_middleware.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.tests.test_middleware instead of lms.djangoapps.course_wiki.tests.test_middleware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.tests.test_middleware') from lms.djangoapps.course_wiki.tests.test_middleware import * diff --git a/sys_path_hacks/lms/course_wiki/tests/test_tab.py b/sys_path_hacks/lms/course_wiki/tests/test_tab.py index 9ce1fe7a2b..838290066e 100644 --- a/sys_path_hacks/lms/course_wiki/tests/test_tab.py +++ b/sys_path_hacks/lms/course_wiki/tests/test_tab.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.tests.test_tab instead of lms.djangoapps.course_wiki.tests.test_tab is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.tests.test_tab') from lms.djangoapps.course_wiki.tests.test_tab import * diff --git a/sys_path_hacks/lms/course_wiki/tests/tests.py b/sys_path_hacks/lms/course_wiki/tests/tests.py index 0e756c2b33..d90c282c94 100644 --- a/sys_path_hacks/lms/course_wiki/tests/tests.py +++ b/sys_path_hacks/lms/course_wiki/tests/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.tests.tests instead of lms.djangoapps.course_wiki.tests.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.tests.tests') from lms.djangoapps.course_wiki.tests.tests import * diff --git a/sys_path_hacks/lms/course_wiki/utils.py b/sys_path_hacks/lms/course_wiki/utils.py index dd905ac1b4..507a078716 100644 --- a/sys_path_hacks/lms/course_wiki/utils.py +++ b/sys_path_hacks/lms/course_wiki/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.utils instead of lms.djangoapps.course_wiki.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.utils') from lms.djangoapps.course_wiki.utils import * diff --git a/sys_path_hacks/lms/course_wiki/views.py b/sys_path_hacks/lms/course_wiki/views.py index 46b54d59e5..8edb71f656 100644 --- a/sys_path_hacks/lms/course_wiki/views.py +++ b/sys_path_hacks/lms/course_wiki/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing course_wiki.views instead of lms.djangoapps.course_wiki.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'course_wiki.views') from lms.djangoapps.course_wiki.views import * diff --git a/sys_path_hacks/lms/courseware/__init__.py b/sys_path_hacks/lms/courseware/__init__.py index 98a668d496..1bad063844 100644 --- a/sys_path_hacks/lms/courseware/__init__.py +++ b/sys_path_hacks/lms/courseware/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware instead of lms.djangoapps.courseware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware') from lms.djangoapps.courseware import * diff --git a/sys_path_hacks/lms/courseware/access.py b/sys_path_hacks/lms/courseware/access.py index ae203f7acc..2018ba7ed6 100644 --- a/sys_path_hacks/lms/courseware/access.py +++ b/sys_path_hacks/lms/courseware/access.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.access instead of lms.djangoapps.courseware.access is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.access') from lms.djangoapps.courseware.access import * diff --git a/sys_path_hacks/lms/courseware/access_response.py b/sys_path_hacks/lms/courseware/access_response.py index 713a081eac..9afaea82a2 100644 --- a/sys_path_hacks/lms/courseware/access_response.py +++ b/sys_path_hacks/lms/courseware/access_response.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.access_response instead of lms.djangoapps.courseware.access_response is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.access_response') from lms.djangoapps.courseware.access_response import * diff --git a/sys_path_hacks/lms/courseware/access_utils.py b/sys_path_hacks/lms/courseware/access_utils.py index 3524e53ad8..faf2f2f704 100644 --- a/sys_path_hacks/lms/courseware/access_utils.py +++ b/sys_path_hacks/lms/courseware/access_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.access_utils instead of lms.djangoapps.courseware.access_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.access_utils') from lms.djangoapps.courseware.access_utils import * diff --git a/sys_path_hacks/lms/courseware/admin.py b/sys_path_hacks/lms/courseware/admin.py index 71eff0c5fe..6c57de98a5 100644 --- a/sys_path_hacks/lms/courseware/admin.py +++ b/sys_path_hacks/lms/courseware/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.admin instead of lms.djangoapps.courseware.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.admin') from lms.djangoapps.courseware.admin import * diff --git a/sys_path_hacks/lms/courseware/context_processor.py b/sys_path_hacks/lms/courseware/context_processor.py index 6d68b01fcb..dda980ba01 100644 --- a/sys_path_hacks/lms/courseware/context_processor.py +++ b/sys_path_hacks/lms/courseware/context_processor.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.context_processor instead of lms.djangoapps.courseware.context_processor is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.context_processor') from lms.djangoapps.courseware.context_processor import * diff --git a/sys_path_hacks/lms/courseware/course_tools.py b/sys_path_hacks/lms/courseware/course_tools.py index 59b296e807..eb03708ccb 100644 --- a/sys_path_hacks/lms/courseware/course_tools.py +++ b/sys_path_hacks/lms/courseware/course_tools.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.course_tools instead of lms.djangoapps.courseware.course_tools is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.course_tools') from lms.djangoapps.courseware.course_tools import * diff --git a/sys_path_hacks/lms/courseware/courses.py b/sys_path_hacks/lms/courseware/courses.py index c84060a93f..0d8f17ce69 100644 --- a/sys_path_hacks/lms/courseware/courses.py +++ b/sys_path_hacks/lms/courseware/courses.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.courses instead of lms.djangoapps.courseware.courses is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.courses') from lms.djangoapps.courseware.courses import * diff --git a/sys_path_hacks/lms/courseware/courseware_access_exception.py b/sys_path_hacks/lms/courseware/courseware_access_exception.py index c9deb72e94..5e305829e1 100644 --- a/sys_path_hacks/lms/courseware/courseware_access_exception.py +++ b/sys_path_hacks/lms/courseware/courseware_access_exception.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.courseware_access_exception instead of lms.djangoapps.courseware.courseware_access_exception is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.courseware_access_exception') from lms.djangoapps.courseware.courseware_access_exception import * diff --git a/sys_path_hacks/lms/courseware/date_summary.py b/sys_path_hacks/lms/courseware/date_summary.py index 31cfd86f4d..15b269e1c5 100644 --- a/sys_path_hacks/lms/courseware/date_summary.py +++ b/sys_path_hacks/lms/courseware/date_summary.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.date_summary instead of lms.djangoapps.courseware.date_summary is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.date_summary') from lms.djangoapps.courseware.date_summary import * diff --git a/sys_path_hacks/lms/courseware/entrance_exams.py b/sys_path_hacks/lms/courseware/entrance_exams.py index d4360c6d11..21bd7f6a27 100644 --- a/sys_path_hacks/lms/courseware/entrance_exams.py +++ b/sys_path_hacks/lms/courseware/entrance_exams.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.entrance_exams instead of lms.djangoapps.courseware.entrance_exams is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.entrance_exams') from lms.djangoapps.courseware.entrance_exams import * diff --git a/sys_path_hacks/lms/courseware/exceptions.py b/sys_path_hacks/lms/courseware/exceptions.py index de6cd171ae..e77dcd3509 100644 --- a/sys_path_hacks/lms/courseware/exceptions.py +++ b/sys_path_hacks/lms/courseware/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.exceptions instead of lms.djangoapps.courseware.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.exceptions') from lms.djangoapps.courseware.exceptions import * diff --git a/sys_path_hacks/lms/courseware/field_overrides.py b/sys_path_hacks/lms/courseware/field_overrides.py index 3337cf133a..893a5c6cc2 100644 --- a/sys_path_hacks/lms/courseware/field_overrides.py +++ b/sys_path_hacks/lms/courseware/field_overrides.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.field_overrides instead of lms.djangoapps.courseware.field_overrides is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.field_overrides') from lms.djangoapps.courseware.field_overrides import * diff --git a/sys_path_hacks/lms/courseware/fields.py b/sys_path_hacks/lms/courseware/fields.py index 6211a6eddd..46879cafce 100644 --- a/sys_path_hacks/lms/courseware/fields.py +++ b/sys_path_hacks/lms/courseware/fields.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.fields instead of lms.djangoapps.courseware.fields is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.fields') from lms.djangoapps.courseware.fields import * diff --git a/sys_path_hacks/lms/courseware/management/__init__.py b/sys_path_hacks/lms/courseware/management/__init__.py index dc114a65ca..86a11fa3fe 100644 --- a/sys_path_hacks/lms/courseware/management/__init__.py +++ b/sys_path_hacks/lms/courseware/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.management instead of lms.djangoapps.courseware.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.management') from lms.djangoapps.courseware.management import * diff --git a/sys_path_hacks/lms/courseware/management/commands/__init__.py b/sys_path_hacks/lms/courseware/management/commands/__init__.py index eb3efca18e..d13c8cb016 100644 --- a/sys_path_hacks/lms/courseware/management/commands/__init__.py +++ b/sys_path_hacks/lms/courseware/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.management.commands instead of lms.djangoapps.courseware.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.management.commands') from lms.djangoapps.courseware.management.commands import * diff --git a/sys_path_hacks/lms/courseware/management/commands/clean_xml.py b/sys_path_hacks/lms/courseware/management/commands/clean_xml.py index c6c83e2d2d..8a3a4bb055 100644 --- a/sys_path_hacks/lms/courseware/management/commands/clean_xml.py +++ b/sys_path_hacks/lms/courseware/management/commands/clean_xml.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.management.commands.clean_xml instead of lms.djangoapps.courseware.management.commands.clean_xml is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.management.commands.clean_xml') from lms.djangoapps.courseware.management.commands.clean_xml import * diff --git a/sys_path_hacks/lms/courseware/management/commands/dump_course_ids.py b/sys_path_hacks/lms/courseware/management/commands/dump_course_ids.py index c816b9b06c..e14e671371 100644 --- a/sys_path_hacks/lms/courseware/management/commands/dump_course_ids.py +++ b/sys_path_hacks/lms/courseware/management/commands/dump_course_ids.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.management.commands.dump_course_ids instead of lms.djangoapps.courseware.management.commands.dump_course_ids is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.management.commands.dump_course_ids') from lms.djangoapps.courseware.management.commands.dump_course_ids import * diff --git a/sys_path_hacks/lms/courseware/management/commands/dump_course_structure.py b/sys_path_hacks/lms/courseware/management/commands/dump_course_structure.py index ac705322f9..0f5b5bf3e3 100644 --- a/sys_path_hacks/lms/courseware/management/commands/dump_course_structure.py +++ b/sys_path_hacks/lms/courseware/management/commands/dump_course_structure.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.management.commands.dump_course_structure instead of lms.djangoapps.courseware.management.commands.dump_course_structure is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.management.commands.dump_course_structure') from lms.djangoapps.courseware.management.commands.dump_course_structure import * diff --git a/sys_path_hacks/lms/courseware/management/commands/tests/__init__.py b/sys_path_hacks/lms/courseware/management/commands/tests/__init__.py index 9cfd1eee1f..2dd132fbae 100644 --- a/sys_path_hacks/lms/courseware/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/courseware/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.management.commands.tests instead of lms.djangoapps.courseware.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.management.commands.tests') from lms.djangoapps.courseware.management.commands.tests import * diff --git a/sys_path_hacks/lms/courseware/management/commands/tests/test_dump_course.py b/sys_path_hacks/lms/courseware/management/commands/tests/test_dump_course.py index dea6bf1b0f..81981d2325 100644 --- a/sys_path_hacks/lms/courseware/management/commands/tests/test_dump_course.py +++ b/sys_path_hacks/lms/courseware/management/commands/tests/test_dump_course.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.management.commands.tests.test_dump_course instead of lms.djangoapps.courseware.management.commands.tests.test_dump_course is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.management.commands.tests.test_dump_course') from lms.djangoapps.courseware.management.commands.tests.test_dump_course import * diff --git a/sys_path_hacks/lms/courseware/masquerade.py b/sys_path_hacks/lms/courseware/masquerade.py index f1a7524b97..3166d34774 100644 --- a/sys_path_hacks/lms/courseware/masquerade.py +++ b/sys_path_hacks/lms/courseware/masquerade.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.masquerade instead of lms.djangoapps.courseware.masquerade is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.masquerade') from lms.djangoapps.courseware.masquerade import * diff --git a/sys_path_hacks/lms/courseware/middleware.py b/sys_path_hacks/lms/courseware/middleware.py index 58634a0f0c..005686c830 100644 --- a/sys_path_hacks/lms/courseware/middleware.py +++ b/sys_path_hacks/lms/courseware/middleware.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.middleware instead of lms.djangoapps.courseware.middleware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.middleware') from lms.djangoapps.courseware.middleware import * diff --git a/sys_path_hacks/lms/courseware/model_data.py b/sys_path_hacks/lms/courseware/model_data.py index 249ba3579d..9b858494f4 100644 --- a/sys_path_hacks/lms/courseware/model_data.py +++ b/sys_path_hacks/lms/courseware/model_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.model_data instead of lms.djangoapps.courseware.model_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.model_data') from lms.djangoapps.courseware.model_data import * diff --git a/sys_path_hacks/lms/courseware/models.py b/sys_path_hacks/lms/courseware/models.py index 950af6274c..e9b0d2fd98 100644 --- a/sys_path_hacks/lms/courseware/models.py +++ b/sys_path_hacks/lms/courseware/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.models instead of lms.djangoapps.courseware.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.models') from lms.djangoapps.courseware.models import * diff --git a/sys_path_hacks/lms/courseware/module_render.py b/sys_path_hacks/lms/courseware/module_render.py index e834e35cdc..049ad37d45 100644 --- a/sys_path_hacks/lms/courseware/module_render.py +++ b/sys_path_hacks/lms/courseware/module_render.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.module_render instead of lms.djangoapps.courseware.module_render is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.module_render') from lms.djangoapps.courseware.module_render import * diff --git a/sys_path_hacks/lms/courseware/permissions.py b/sys_path_hacks/lms/courseware/permissions.py index 5be7d19b58..9ffd0141ff 100644 --- a/sys_path_hacks/lms/courseware/permissions.py +++ b/sys_path_hacks/lms/courseware/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.permissions instead of lms.djangoapps.courseware.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.permissions') from lms.djangoapps.courseware.permissions import * diff --git a/sys_path_hacks/lms/courseware/rules.py b/sys_path_hacks/lms/courseware/rules.py index 39c4453be5..6cc09e5d8f 100644 --- a/sys_path_hacks/lms/courseware/rules.py +++ b/sys_path_hacks/lms/courseware/rules.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.rules instead of lms.djangoapps.courseware.rules is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.rules') from lms.djangoapps.courseware.rules import * diff --git a/sys_path_hacks/lms/courseware/self_paced_overrides.py b/sys_path_hacks/lms/courseware/self_paced_overrides.py index 606b08722b..45cd30522d 100644 --- a/sys_path_hacks/lms/courseware/self_paced_overrides.py +++ b/sys_path_hacks/lms/courseware/self_paced_overrides.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.self_paced_overrides instead of lms.djangoapps.courseware.self_paced_overrides is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.self_paced_overrides') from lms.djangoapps.courseware.self_paced_overrides import * diff --git a/sys_path_hacks/lms/courseware/services.py b/sys_path_hacks/lms/courseware/services.py index 8be1b7e0b8..1389261f61 100644 --- a/sys_path_hacks/lms/courseware/services.py +++ b/sys_path_hacks/lms/courseware/services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.services instead of lms.djangoapps.courseware.services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.services') from lms.djangoapps.courseware.services import * diff --git a/sys_path_hacks/lms/courseware/student_field_overrides.py b/sys_path_hacks/lms/courseware/student_field_overrides.py index 86e643afd3..cd927f0c58 100644 --- a/sys_path_hacks/lms/courseware/student_field_overrides.py +++ b/sys_path_hacks/lms/courseware/student_field_overrides.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.student_field_overrides instead of lms.djangoapps.courseware.student_field_overrides is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.student_field_overrides') from lms.djangoapps.courseware.student_field_overrides import * diff --git a/sys_path_hacks/lms/courseware/tabs.py b/sys_path_hacks/lms/courseware/tabs.py index 21e40b8b09..7550fe7a2f 100644 --- a/sys_path_hacks/lms/courseware/tabs.py +++ b/sys_path_hacks/lms/courseware/tabs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tabs instead of lms.djangoapps.courseware.tabs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tabs') from lms.djangoapps.courseware.tabs import * diff --git a/sys_path_hacks/lms/courseware/tests/__init__.py b/sys_path_hacks/lms/courseware/tests/__init__.py index a14bf935a3..3cec4cf83c 100644 --- a/sys_path_hacks/lms/courseware/tests/__init__.py +++ b/sys_path_hacks/lms/courseware/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests instead of lms.djangoapps.courseware.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests') from lms.djangoapps.courseware.tests import * diff --git a/sys_path_hacks/lms/courseware/tests/animport.py b/sys_path_hacks/lms/courseware/tests/animport.py index d137e5f809..987d11e848 100644 --- a/sys_path_hacks/lms/courseware/tests/animport.py +++ b/sys_path_hacks/lms/courseware/tests/animport.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.animport instead of lms.djangoapps.courseware.tests.animport is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.animport') from lms.djangoapps.courseware.tests.animport import * diff --git a/sys_path_hacks/lms/courseware/tests/factories.py b/sys_path_hacks/lms/courseware/tests/factories.py index fef7efd48d..3a54e5b17b 100644 --- a/sys_path_hacks/lms/courseware/tests/factories.py +++ b/sys_path_hacks/lms/courseware/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.factories instead of lms.djangoapps.courseware.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.factories') from lms.djangoapps.courseware.tests.factories import * diff --git a/sys_path_hacks/lms/courseware/tests/helpers.py b/sys_path_hacks/lms/courseware/tests/helpers.py index 7656c2fecc..3af57fa8ba 100644 --- a/sys_path_hacks/lms/courseware/tests/helpers.py +++ b/sys_path_hacks/lms/courseware/tests/helpers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.helpers instead of lms.djangoapps.courseware.tests.helpers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.helpers') from lms.djangoapps.courseware.tests.helpers import * diff --git a/sys_path_hacks/lms/courseware/tests/test_about.py b/sys_path_hacks/lms/courseware/tests/test_about.py index 9ef477cdc0..d8d755b161 100644 --- a/sys_path_hacks/lms/courseware/tests/test_about.py +++ b/sys_path_hacks/lms/courseware/tests/test_about.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_about instead of lms.djangoapps.courseware.tests.test_about is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_about') from lms.djangoapps.courseware.tests.test_about import * diff --git a/sys_path_hacks/lms/courseware/tests/test_access.py b/sys_path_hacks/lms/courseware/tests/test_access.py index 5ebef66fef..fd9c484c73 100644 --- a/sys_path_hacks/lms/courseware/tests/test_access.py +++ b/sys_path_hacks/lms/courseware/tests/test_access.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_access instead of lms.djangoapps.courseware.tests.test_access is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_access') from lms.djangoapps.courseware.tests.test_access import * diff --git a/sys_path_hacks/lms/courseware/tests/test_comprehensive_theming.py b/sys_path_hacks/lms/courseware/tests/test_comprehensive_theming.py index 089a698fe9..20e8cc04c3 100644 --- a/sys_path_hacks/lms/courseware/tests/test_comprehensive_theming.py +++ b/sys_path_hacks/lms/courseware/tests/test_comprehensive_theming.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_comprehensive_theming instead of lms.djangoapps.courseware.tests.test_comprehensive_theming is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_comprehensive_theming') from lms.djangoapps.courseware.tests.test_comprehensive_theming import * diff --git a/sys_path_hacks/lms/courseware/tests/test_context_processor.py b/sys_path_hacks/lms/courseware/tests/test_context_processor.py index 953a55fd51..b8e8a6c004 100644 --- a/sys_path_hacks/lms/courseware/tests/test_context_processor.py +++ b/sys_path_hacks/lms/courseware/tests/test_context_processor.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_context_processor instead of lms.djangoapps.courseware.tests.test_context_processor is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_context_processor') from lms.djangoapps.courseware.tests.test_context_processor import * diff --git a/sys_path_hacks/lms/courseware/tests/test_course_info.py b/sys_path_hacks/lms/courseware/tests/test_course_info.py index 2dfa2778b5..909fef55c0 100644 --- a/sys_path_hacks/lms/courseware/tests/test_course_info.py +++ b/sys_path_hacks/lms/courseware/tests/test_course_info.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_course_info instead of lms.djangoapps.courseware.tests.test_course_info is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_course_info') from lms.djangoapps.courseware.tests.test_course_info import * diff --git a/sys_path_hacks/lms/courseware/tests/test_course_survey.py b/sys_path_hacks/lms/courseware/tests/test_course_survey.py index e793b4be81..9f06ed4513 100644 --- a/sys_path_hacks/lms/courseware/tests/test_course_survey.py +++ b/sys_path_hacks/lms/courseware/tests/test_course_survey.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_course_survey instead of lms.djangoapps.courseware.tests.test_course_survey is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_course_survey') from lms.djangoapps.courseware.tests.test_course_survey import * diff --git a/sys_path_hacks/lms/courseware/tests/test_course_tools.py b/sys_path_hacks/lms/courseware/tests/test_course_tools.py index 382104bb04..bcbb9bd8d9 100644 --- a/sys_path_hacks/lms/courseware/tests/test_course_tools.py +++ b/sys_path_hacks/lms/courseware/tests/test_course_tools.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_course_tools instead of lms.djangoapps.courseware.tests.test_course_tools is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_course_tools') from lms.djangoapps.courseware.tests.test_course_tools import * diff --git a/sys_path_hacks/lms/courseware/tests/test_courses.py b/sys_path_hacks/lms/courseware/tests/test_courses.py index cee3d8210f..e011a46cd9 100644 --- a/sys_path_hacks/lms/courseware/tests/test_courses.py +++ b/sys_path_hacks/lms/courseware/tests/test_courses.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_courses instead of lms.djangoapps.courseware.tests.test_courses is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_courses') from lms.djangoapps.courseware.tests.test_courses import * diff --git a/sys_path_hacks/lms/courseware/tests/test_credit_requirements.py b/sys_path_hacks/lms/courseware/tests/test_credit_requirements.py index 512ec89055..448ac0efc6 100644 --- a/sys_path_hacks/lms/courseware/tests/test_credit_requirements.py +++ b/sys_path_hacks/lms/courseware/tests/test_credit_requirements.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_credit_requirements instead of lms.djangoapps.courseware.tests.test_credit_requirements is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_credit_requirements') from lms.djangoapps.courseware.tests.test_credit_requirements import * diff --git a/sys_path_hacks/lms/courseware/tests/test_date_summary.py b/sys_path_hacks/lms/courseware/tests/test_date_summary.py index bdffc7243b..0b49da6056 100644 --- a/sys_path_hacks/lms/courseware/tests/test_date_summary.py +++ b/sys_path_hacks/lms/courseware/tests/test_date_summary.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_date_summary instead of lms.djangoapps.courseware.tests.test_date_summary is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_date_summary') from lms.djangoapps.courseware.tests.test_date_summary import * diff --git a/sys_path_hacks/lms/courseware/tests/test_discussion_xblock.py b/sys_path_hacks/lms/courseware/tests/test_discussion_xblock.py index 81f45b111b..f366bb14ae 100644 --- a/sys_path_hacks/lms/courseware/tests/test_discussion_xblock.py +++ b/sys_path_hacks/lms/courseware/tests/test_discussion_xblock.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_discussion_xblock instead of lms.djangoapps.courseware.tests.test_discussion_xblock is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_discussion_xblock') from lms.djangoapps.courseware.tests.test_discussion_xblock import * diff --git a/sys_path_hacks/lms/courseware/tests/test_draft_modulestore.py b/sys_path_hacks/lms/courseware/tests/test_draft_modulestore.py index 561e2266eb..a6141779f1 100644 --- a/sys_path_hacks/lms/courseware/tests/test_draft_modulestore.py +++ b/sys_path_hacks/lms/courseware/tests/test_draft_modulestore.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_draft_modulestore instead of lms.djangoapps.courseware.tests.test_draft_modulestore is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_draft_modulestore') from lms.djangoapps.courseware.tests.test_draft_modulestore import * diff --git a/sys_path_hacks/lms/courseware/tests/test_entrance_exam.py b/sys_path_hacks/lms/courseware/tests/test_entrance_exam.py index feb4b9cbc4..e0e8e5a52e 100644 --- a/sys_path_hacks/lms/courseware/tests/test_entrance_exam.py +++ b/sys_path_hacks/lms/courseware/tests/test_entrance_exam.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_entrance_exam instead of lms.djangoapps.courseware.tests.test_entrance_exam is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_entrance_exam') from lms.djangoapps.courseware.tests.test_entrance_exam import * diff --git a/sys_path_hacks/lms/courseware/tests/test_favicon.py b/sys_path_hacks/lms/courseware/tests/test_favicon.py index 42bb851064..74f7b2d628 100644 --- a/sys_path_hacks/lms/courseware/tests/test_favicon.py +++ b/sys_path_hacks/lms/courseware/tests/test_favicon.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_favicon instead of lms.djangoapps.courseware.tests.test_favicon is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_favicon') from lms.djangoapps.courseware.tests.test_favicon import * diff --git a/sys_path_hacks/lms/courseware/tests/test_field_overrides.py b/sys_path_hacks/lms/courseware/tests/test_field_overrides.py index 69a796bb65..2bc11282db 100644 --- a/sys_path_hacks/lms/courseware/tests/test_field_overrides.py +++ b/sys_path_hacks/lms/courseware/tests/test_field_overrides.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_field_overrides instead of lms.djangoapps.courseware.tests.test_field_overrides is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_field_overrides') from lms.djangoapps.courseware.tests.test_field_overrides import * diff --git a/sys_path_hacks/lms/courseware/tests/test_footer.py b/sys_path_hacks/lms/courseware/tests/test_footer.py index 7c852a0385..26b3ad789c 100644 --- a/sys_path_hacks/lms/courseware/tests/test_footer.py +++ b/sys_path_hacks/lms/courseware/tests/test_footer.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_footer instead of lms.djangoapps.courseware.tests.test_footer is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_footer') from lms.djangoapps.courseware.tests.test_footer import * diff --git a/sys_path_hacks/lms/courseware/tests/test_group_access.py b/sys_path_hacks/lms/courseware/tests/test_group_access.py index c63244142f..fd9904c2cb 100644 --- a/sys_path_hacks/lms/courseware/tests/test_group_access.py +++ b/sys_path_hacks/lms/courseware/tests/test_group_access.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_group_access instead of lms.djangoapps.courseware.tests.test_group_access is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_group_access') from lms.djangoapps.courseware.tests.test_group_access import * diff --git a/sys_path_hacks/lms/courseware/tests/test_i18n.py b/sys_path_hacks/lms/courseware/tests/test_i18n.py index 9d00f2e5c0..0dab008cde 100644 --- a/sys_path_hacks/lms/courseware/tests/test_i18n.py +++ b/sys_path_hacks/lms/courseware/tests/test_i18n.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_i18n instead of lms.djangoapps.courseware.tests.test_i18n is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_i18n') from lms.djangoapps.courseware.tests.test_i18n import * diff --git a/sys_path_hacks/lms/courseware/tests/test_lti_integration.py b/sys_path_hacks/lms/courseware/tests/test_lti_integration.py index 12418ced13..44485835c3 100644 --- a/sys_path_hacks/lms/courseware/tests/test_lti_integration.py +++ b/sys_path_hacks/lms/courseware/tests/test_lti_integration.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_lti_integration instead of lms.djangoapps.courseware.tests.test_lti_integration is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_lti_integration') from lms.djangoapps.courseware.tests.test_lti_integration import * diff --git a/sys_path_hacks/lms/courseware/tests/test_masquerade.py b/sys_path_hacks/lms/courseware/tests/test_masquerade.py index 468a6538dc..765325db59 100644 --- a/sys_path_hacks/lms/courseware/tests/test_masquerade.py +++ b/sys_path_hacks/lms/courseware/tests/test_masquerade.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_masquerade instead of lms.djangoapps.courseware.tests.test_masquerade is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_masquerade') from lms.djangoapps.courseware.tests.test_masquerade import * diff --git a/sys_path_hacks/lms/courseware/tests/test_middleware.py b/sys_path_hacks/lms/courseware/tests/test_middleware.py index 4692c0f803..470f6b9916 100644 --- a/sys_path_hacks/lms/courseware/tests/test_middleware.py +++ b/sys_path_hacks/lms/courseware/tests/test_middleware.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_middleware instead of lms.djangoapps.courseware.tests.test_middleware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_middleware') from lms.djangoapps.courseware.tests.test_middleware import * diff --git a/sys_path_hacks/lms/courseware/tests/test_model_data.py b/sys_path_hacks/lms/courseware/tests/test_model_data.py index d1eed6157c..681c5b3ad8 100644 --- a/sys_path_hacks/lms/courseware/tests/test_model_data.py +++ b/sys_path_hacks/lms/courseware/tests/test_model_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_model_data instead of lms.djangoapps.courseware.tests.test_model_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_model_data') from lms.djangoapps.courseware.tests.test_model_data import * diff --git a/sys_path_hacks/lms/courseware/tests/test_module_render.py b/sys_path_hacks/lms/courseware/tests/test_module_render.py index 97727d4b16..f07578aa2f 100644 --- a/sys_path_hacks/lms/courseware/tests/test_module_render.py +++ b/sys_path_hacks/lms/courseware/tests/test_module_render.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_module_render instead of lms.djangoapps.courseware.tests.test_module_render is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_module_render') from lms.djangoapps.courseware.tests.test_module_render import * diff --git a/sys_path_hacks/lms/courseware/tests/test_navigation.py b/sys_path_hacks/lms/courseware/tests/test_navigation.py index 591c335c8b..ecb5d5ef77 100644 --- a/sys_path_hacks/lms/courseware/tests/test_navigation.py +++ b/sys_path_hacks/lms/courseware/tests/test_navigation.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_navigation instead of lms.djangoapps.courseware.tests.test_navigation is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_navigation') from lms.djangoapps.courseware.tests.test_navigation import * diff --git a/sys_path_hacks/lms/courseware/tests/test_rules.py b/sys_path_hacks/lms/courseware/tests/test_rules.py index 877c862b92..7fc1cc339d 100644 --- a/sys_path_hacks/lms/courseware/tests/test_rules.py +++ b/sys_path_hacks/lms/courseware/tests/test_rules.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_rules instead of lms.djangoapps.courseware.tests.test_rules is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_rules') from lms.djangoapps.courseware.tests.test_rules import * diff --git a/sys_path_hacks/lms/courseware/tests/test_self_paced_overrides.py b/sys_path_hacks/lms/courseware/tests/test_self_paced_overrides.py index 3af3d109fb..1b80099fa2 100644 --- a/sys_path_hacks/lms/courseware/tests/test_self_paced_overrides.py +++ b/sys_path_hacks/lms/courseware/tests/test_self_paced_overrides.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_self_paced_overrides instead of lms.djangoapps.courseware.tests.test_self_paced_overrides is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_self_paced_overrides') from lms.djangoapps.courseware.tests.test_self_paced_overrides import * diff --git a/sys_path_hacks/lms/courseware/tests/test_services.py b/sys_path_hacks/lms/courseware/tests/test_services.py index 69b8a85799..de2ca740a2 100644 --- a/sys_path_hacks/lms/courseware/tests/test_services.py +++ b/sys_path_hacks/lms/courseware/tests/test_services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_services instead of lms.djangoapps.courseware.tests.test_services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_services') from lms.djangoapps.courseware.tests.test_services import * diff --git a/sys_path_hacks/lms/courseware/tests/test_split_module.py b/sys_path_hacks/lms/courseware/tests/test_split_module.py index 9ab85597fc..eb7e9a854f 100644 --- a/sys_path_hacks/lms/courseware/tests/test_split_module.py +++ b/sys_path_hacks/lms/courseware/tests/test_split_module.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_split_module instead of lms.djangoapps.courseware.tests.test_split_module is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_split_module') from lms.djangoapps.courseware.tests.test_split_module import * diff --git a/sys_path_hacks/lms/courseware/tests/test_submitting_problems.py b/sys_path_hacks/lms/courseware/tests/test_submitting_problems.py index 1253842a08..428fb3ca5e 100644 --- a/sys_path_hacks/lms/courseware/tests/test_submitting_problems.py +++ b/sys_path_hacks/lms/courseware/tests/test_submitting_problems.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_submitting_problems instead of lms.djangoapps.courseware.tests.test_submitting_problems is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_submitting_problems') from lms.djangoapps.courseware.tests.test_submitting_problems import * diff --git a/sys_path_hacks/lms/courseware/tests/test_tabs.py b/sys_path_hacks/lms/courseware/tests/test_tabs.py index 6d2a946709..b2ba7eefe2 100644 --- a/sys_path_hacks/lms/courseware/tests/test_tabs.py +++ b/sys_path_hacks/lms/courseware/tests/test_tabs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_tabs instead of lms.djangoapps.courseware.tests.test_tabs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_tabs') from lms.djangoapps.courseware.tests.test_tabs import * diff --git a/sys_path_hacks/lms/courseware/tests/test_user_state_client.py b/sys_path_hacks/lms/courseware/tests/test_user_state_client.py index 14718ebaf0..31c2a30d5d 100644 --- a/sys_path_hacks/lms/courseware/tests/test_user_state_client.py +++ b/sys_path_hacks/lms/courseware/tests/test_user_state_client.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_user_state_client instead of lms.djangoapps.courseware.tests.test_user_state_client is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_user_state_client') from lms.djangoapps.courseware.tests.test_user_state_client import * diff --git a/sys_path_hacks/lms/courseware/tests/test_video_handlers.py b/sys_path_hacks/lms/courseware/tests/test_video_handlers.py index 80d1685b94..8ff8625afb 100644 --- a/sys_path_hacks/lms/courseware/tests/test_video_handlers.py +++ b/sys_path_hacks/lms/courseware/tests/test_video_handlers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_video_handlers instead of lms.djangoapps.courseware.tests.test_video_handlers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_video_handlers') from lms.djangoapps.courseware.tests.test_video_handlers import * diff --git a/sys_path_hacks/lms/courseware/tests/test_video_mongo.py b/sys_path_hacks/lms/courseware/tests/test_video_mongo.py index e3890b4fab..d1d5d805d7 100644 --- a/sys_path_hacks/lms/courseware/tests/test_video_mongo.py +++ b/sys_path_hacks/lms/courseware/tests/test_video_mongo.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_video_mongo instead of lms.djangoapps.courseware.tests.test_video_mongo is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_video_mongo') from lms.djangoapps.courseware.tests.test_video_mongo import * diff --git a/sys_path_hacks/lms/courseware/tests/test_video_xml.py b/sys_path_hacks/lms/courseware/tests/test_video_xml.py index 91d74a3562..e2ed376cae 100644 --- a/sys_path_hacks/lms/courseware/tests/test_video_xml.py +++ b/sys_path_hacks/lms/courseware/tests/test_video_xml.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_video_xml instead of lms.djangoapps.courseware.tests.test_video_xml is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_video_xml') from lms.djangoapps.courseware.tests.test_video_xml import * diff --git a/sys_path_hacks/lms/courseware/tests/test_view_authentication.py b/sys_path_hacks/lms/courseware/tests/test_view_authentication.py index b960b822d5..885a9b0cff 100644 --- a/sys_path_hacks/lms/courseware/tests/test_view_authentication.py +++ b/sys_path_hacks/lms/courseware/tests/test_view_authentication.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_view_authentication instead of lms.djangoapps.courseware.tests.test_view_authentication is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_view_authentication') from lms.djangoapps.courseware.tests.test_view_authentication import * diff --git a/sys_path_hacks/lms/courseware/tests/test_views.py b/sys_path_hacks/lms/courseware/tests/test_views.py index 20e95a7b40..66a1ec37ba 100644 --- a/sys_path_hacks/lms/courseware/tests/test_views.py +++ b/sys_path_hacks/lms/courseware/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_views instead of lms.djangoapps.courseware.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_views') from lms.djangoapps.courseware.tests.test_views import * diff --git a/sys_path_hacks/lms/courseware/tests/test_word_cloud.py b/sys_path_hacks/lms/courseware/tests/test_word_cloud.py index dd65377ced..b593e9f83b 100644 --- a/sys_path_hacks/lms/courseware/tests/test_word_cloud.py +++ b/sys_path_hacks/lms/courseware/tests/test_word_cloud.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.test_word_cloud instead of lms.djangoapps.courseware.tests.test_word_cloud is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.test_word_cloud') from lms.djangoapps.courseware.tests.test_word_cloud import * diff --git a/sys_path_hacks/lms/courseware/tests/tests.py b/sys_path_hacks/lms/courseware/tests/tests.py index ca4bb5f71f..191fb8cc9e 100644 --- a/sys_path_hacks/lms/courseware/tests/tests.py +++ b/sys_path_hacks/lms/courseware/tests/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.tests.tests instead of lms.djangoapps.courseware.tests.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.tests.tests') from lms.djangoapps.courseware.tests.tests import * diff --git a/sys_path_hacks/lms/courseware/testutils.py b/sys_path_hacks/lms/courseware/testutils.py index 29469b3063..a8a08eaf4b 100644 --- a/sys_path_hacks/lms/courseware/testutils.py +++ b/sys_path_hacks/lms/courseware/testutils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.testutils instead of lms.djangoapps.courseware.testutils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.testutils') from lms.djangoapps.courseware.testutils import * diff --git a/sys_path_hacks/lms/courseware/toggles.py b/sys_path_hacks/lms/courseware/toggles.py index 85e9745701..cc7de29916 100644 --- a/sys_path_hacks/lms/courseware/toggles.py +++ b/sys_path_hacks/lms/courseware/toggles.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.toggles instead of lms.djangoapps.courseware.toggles is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.toggles') from lms.djangoapps.courseware.toggles import * diff --git a/sys_path_hacks/lms/courseware/transformers.py b/sys_path_hacks/lms/courseware/transformers.py index 42f6b3548c..9e3d5e634a 100644 --- a/sys_path_hacks/lms/courseware/transformers.py +++ b/sys_path_hacks/lms/courseware/transformers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.transformers instead of lms.djangoapps.courseware.transformers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.transformers') from lms.djangoapps.courseware.transformers import * diff --git a/sys_path_hacks/lms/courseware/url_helpers.py b/sys_path_hacks/lms/courseware/url_helpers.py index 35bd1419fc..b4c8c6767e 100644 --- a/sys_path_hacks/lms/courseware/url_helpers.py +++ b/sys_path_hacks/lms/courseware/url_helpers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.url_helpers instead of lms.djangoapps.courseware.url_helpers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.url_helpers') from lms.djangoapps.courseware.url_helpers import * diff --git a/sys_path_hacks/lms/courseware/user_state_client.py b/sys_path_hacks/lms/courseware/user_state_client.py index 3fb6be1bd0..4849d06e62 100644 --- a/sys_path_hacks/lms/courseware/user_state_client.py +++ b/sys_path_hacks/lms/courseware/user_state_client.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.user_state_client instead of lms.djangoapps.courseware.user_state_client is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.user_state_client') from lms.djangoapps.courseware.user_state_client import * diff --git a/sys_path_hacks/lms/courseware/utils.py b/sys_path_hacks/lms/courseware/utils.py index 25c9d237dd..45d58eb53a 100644 --- a/sys_path_hacks/lms/courseware/utils.py +++ b/sys_path_hacks/lms/courseware/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.utils instead of lms.djangoapps.courseware.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.utils') from lms.djangoapps.courseware.utils import * diff --git a/sys_path_hacks/lms/courseware/views/__init__.py b/sys_path_hacks/lms/courseware/views/__init__.py index 4c848c8ab1..96f4e06013 100644 --- a/sys_path_hacks/lms/courseware/views/__init__.py +++ b/sys_path_hacks/lms/courseware/views/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.views instead of lms.djangoapps.courseware.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.views') from lms.djangoapps.courseware.views import * diff --git a/sys_path_hacks/lms/courseware/views/index.py b/sys_path_hacks/lms/courseware/views/index.py index 7b467b4b56..f2541f95dd 100644 --- a/sys_path_hacks/lms/courseware/views/index.py +++ b/sys_path_hacks/lms/courseware/views/index.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.views.index instead of lms.djangoapps.courseware.views.index is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.views.index') from lms.djangoapps.courseware.views.index import * diff --git a/sys_path_hacks/lms/courseware/views/views.py b/sys_path_hacks/lms/courseware/views/views.py index d173fdd4c3..bca313b63b 100644 --- a/sys_path_hacks/lms/courseware/views/views.py +++ b/sys_path_hacks/lms/courseware/views/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing courseware.views.views instead of lms.djangoapps.courseware.views.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'courseware.views.views') from lms.djangoapps.courseware.views.views import * diff --git a/sys_path_hacks/lms/coursewarehistoryextended/__init__.py b/sys_path_hacks/lms/coursewarehistoryextended/__init__.py index 180eb4283a..fa8e803c28 100644 --- a/sys_path_hacks/lms/coursewarehistoryextended/__init__.py +++ b/sys_path_hacks/lms/coursewarehistoryextended/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing coursewarehistoryextended instead of lms.djangoapps.coursewarehistoryextended is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'coursewarehistoryextended') from lms.djangoapps.coursewarehistoryextended import * diff --git a/sys_path_hacks/lms/coursewarehistoryextended/apps.py b/sys_path_hacks/lms/coursewarehistoryextended/apps.py index 051348b874..4f4a6302e7 100644 --- a/sys_path_hacks/lms/coursewarehistoryextended/apps.py +++ b/sys_path_hacks/lms/coursewarehistoryextended/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing coursewarehistoryextended.apps instead of lms.djangoapps.coursewarehistoryextended.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'coursewarehistoryextended.apps') from lms.djangoapps.coursewarehistoryextended.apps import * diff --git a/sys_path_hacks/lms/coursewarehistoryextended/models.py b/sys_path_hacks/lms/coursewarehistoryextended/models.py index 9179390ee5..eb8713a1c8 100644 --- a/sys_path_hacks/lms/coursewarehistoryextended/models.py +++ b/sys_path_hacks/lms/coursewarehistoryextended/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing coursewarehistoryextended.models instead of lms.djangoapps.coursewarehistoryextended.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'coursewarehistoryextended.models') from lms.djangoapps.coursewarehistoryextended.models import * diff --git a/sys_path_hacks/lms/coursewarehistoryextended/tests.py b/sys_path_hacks/lms/coursewarehistoryextended/tests.py index d9efdb34db..38af134a7d 100644 --- a/sys_path_hacks/lms/coursewarehistoryextended/tests.py +++ b/sys_path_hacks/lms/coursewarehistoryextended/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing coursewarehistoryextended.tests instead of lms.djangoapps.coursewarehistoryextended.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'coursewarehistoryextended.tests') from lms.djangoapps.coursewarehistoryextended.tests import * diff --git a/sys_path_hacks/lms/dashboard/__init__.py b/sys_path_hacks/lms/dashboard/__init__.py index f9fb2b06b1..1080658e7a 100644 --- a/sys_path_hacks/lms/dashboard/__init__.py +++ b/sys_path_hacks/lms/dashboard/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard instead of lms.djangoapps.dashboard is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard') from lms.djangoapps.dashboard import * diff --git a/sys_path_hacks/lms/dashboard/git_import.py b/sys_path_hacks/lms/dashboard/git_import.py index ac27631875..f1f1a1bb8d 100644 --- a/sys_path_hacks/lms/dashboard/git_import.py +++ b/sys_path_hacks/lms/dashboard/git_import.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.git_import instead of lms.djangoapps.dashboard.git_import is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.git_import') from lms.djangoapps.dashboard.git_import import * diff --git a/sys_path_hacks/lms/dashboard/management/__init__.py b/sys_path_hacks/lms/dashboard/management/__init__.py index 07d8ba58c7..6a8ffb3e9d 100644 --- a/sys_path_hacks/lms/dashboard/management/__init__.py +++ b/sys_path_hacks/lms/dashboard/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.management instead of lms.djangoapps.dashboard.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.management') from lms.djangoapps.dashboard.management import * diff --git a/sys_path_hacks/lms/dashboard/management/commands/__init__.py b/sys_path_hacks/lms/dashboard/management/commands/__init__.py index 1a074f23c7..1fb90b158d 100644 --- a/sys_path_hacks/lms/dashboard/management/commands/__init__.py +++ b/sys_path_hacks/lms/dashboard/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.management.commands instead of lms.djangoapps.dashboard.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.management.commands') from lms.djangoapps.dashboard.management.commands import * diff --git a/sys_path_hacks/lms/dashboard/management/commands/git_add_course.py b/sys_path_hacks/lms/dashboard/management/commands/git_add_course.py index 04529a47f4..10797e6fee 100644 --- a/sys_path_hacks/lms/dashboard/management/commands/git_add_course.py +++ b/sys_path_hacks/lms/dashboard/management/commands/git_add_course.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.management.commands.git_add_course instead of lms.djangoapps.dashboard.management.commands.git_add_course is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.management.commands.git_add_course') from lms.djangoapps.dashboard.management.commands.git_add_course import * diff --git a/sys_path_hacks/lms/dashboard/management/commands/tests/__init__.py b/sys_path_hacks/lms/dashboard/management/commands/tests/__init__.py index fd1ce5b322..0d20fe8fb2 100644 --- a/sys_path_hacks/lms/dashboard/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/dashboard/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.management.commands.tests instead of lms.djangoapps.dashboard.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.management.commands.tests') from lms.djangoapps.dashboard.management.commands.tests import * diff --git a/sys_path_hacks/lms/dashboard/management/commands/tests/test_git_add_course.py b/sys_path_hacks/lms/dashboard/management/commands/tests/test_git_add_course.py index d9d64385dc..b0907307b4 100644 --- a/sys_path_hacks/lms/dashboard/management/commands/tests/test_git_add_course.py +++ b/sys_path_hacks/lms/dashboard/management/commands/tests/test_git_add_course.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.management.commands.tests.test_git_add_course instead of lms.djangoapps.dashboard.management.commands.tests.test_git_add_course is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.management.commands.tests.test_git_add_course') from lms.djangoapps.dashboard.management.commands.tests.test_git_add_course import * diff --git a/sys_path_hacks/lms/dashboard/models.py b/sys_path_hacks/lms/dashboard/models.py index 4bc6cea84d..a4d40649ca 100644 --- a/sys_path_hacks/lms/dashboard/models.py +++ b/sys_path_hacks/lms/dashboard/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.models instead of lms.djangoapps.dashboard.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.models') from lms.djangoapps.dashboard.models import * diff --git a/sys_path_hacks/lms/dashboard/sysadmin.py b/sys_path_hacks/lms/dashboard/sysadmin.py index 0c61453c26..608ad3235b 100644 --- a/sys_path_hacks/lms/dashboard/sysadmin.py +++ b/sys_path_hacks/lms/dashboard/sysadmin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.sysadmin instead of lms.djangoapps.dashboard.sysadmin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.sysadmin') from lms.djangoapps.dashboard.sysadmin import * diff --git a/sys_path_hacks/lms/dashboard/sysadmin_urls.py b/sys_path_hacks/lms/dashboard/sysadmin_urls.py index 37497fce97..b358d36ca1 100644 --- a/sys_path_hacks/lms/dashboard/sysadmin_urls.py +++ b/sys_path_hacks/lms/dashboard/sysadmin_urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.sysadmin_urls instead of lms.djangoapps.dashboard.sysadmin_urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.sysadmin_urls') from lms.djangoapps.dashboard.sysadmin_urls import * diff --git a/sys_path_hacks/lms/dashboard/tests/__init__.py b/sys_path_hacks/lms/dashboard/tests/__init__.py index 276a0db81c..18f3591d7d 100644 --- a/sys_path_hacks/lms/dashboard/tests/__init__.py +++ b/sys_path_hacks/lms/dashboard/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.tests instead of lms.djangoapps.dashboard.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.tests') from lms.djangoapps.dashboard.tests import * diff --git a/sys_path_hacks/lms/dashboard/tests/test_sysadmin.py b/sys_path_hacks/lms/dashboard/tests/test_sysadmin.py index cf5bab8d53..17d573c3de 100644 --- a/sys_path_hacks/lms/dashboard/tests/test_sysadmin.py +++ b/sys_path_hacks/lms/dashboard/tests/test_sysadmin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing dashboard.tests.test_sysadmin instead of lms.djangoapps.dashboard.tests.test_sysadmin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'dashboard.tests.test_sysadmin') from lms.djangoapps.dashboard.tests.test_sysadmin import * diff --git a/sys_path_hacks/lms/debug/__init__.py b/sys_path_hacks/lms/debug/__init__.py index 60bd0003ca..f24587af1b 100644 --- a/sys_path_hacks/lms/debug/__init__.py +++ b/sys_path_hacks/lms/debug/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing debug instead of lms.djangoapps.debug is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'debug') from lms.djangoapps.debug import * diff --git a/sys_path_hacks/lms/debug/management/__init__.py b/sys_path_hacks/lms/debug/management/__init__.py index d7d8e33ea5..3b67c04332 100644 --- a/sys_path_hacks/lms/debug/management/__init__.py +++ b/sys_path_hacks/lms/debug/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing debug.management instead of lms.djangoapps.debug.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'debug.management') from lms.djangoapps.debug.management import * diff --git a/sys_path_hacks/lms/debug/management/commands/__init__.py b/sys_path_hacks/lms/debug/management/commands/__init__.py index 0c33b7f515..4c378c45a3 100644 --- a/sys_path_hacks/lms/debug/management/commands/__init__.py +++ b/sys_path_hacks/lms/debug/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing debug.management.commands instead of lms.djangoapps.debug.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'debug.management.commands') from lms.djangoapps.debug.management.commands import * diff --git a/sys_path_hacks/lms/debug/management/commands/dump_xml_courses.py b/sys_path_hacks/lms/debug/management/commands/dump_xml_courses.py index 770e1c442a..f06a4b4203 100644 --- a/sys_path_hacks/lms/debug/management/commands/dump_xml_courses.py +++ b/sys_path_hacks/lms/debug/management/commands/dump_xml_courses.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing debug.management.commands.dump_xml_courses instead of lms.djangoapps.debug.management.commands.dump_xml_courses is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'debug.management.commands.dump_xml_courses') from lms.djangoapps.debug.management.commands.dump_xml_courses import * diff --git a/sys_path_hacks/lms/debug/views.py b/sys_path_hacks/lms/debug/views.py index 588157dd67..7e36756503 100644 --- a/sys_path_hacks/lms/debug/views.py +++ b/sys_path_hacks/lms/debug/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing debug.views instead of lms.djangoapps.debug.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'debug.views') from lms.djangoapps.debug.views import * diff --git a/sys_path_hacks/lms/discussion/__init__.py b/sys_path_hacks/lms/discussion/__init__.py index 7d18488ee6..1caf0b32d3 100644 --- a/sys_path_hacks/lms/discussion/__init__.py +++ b/sys_path_hacks/lms/discussion/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion instead of lms.djangoapps.discussion is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion') from lms.djangoapps.discussion import * diff --git a/sys_path_hacks/lms/discussion/apps.py b/sys_path_hacks/lms/discussion/apps.py index f0c62bd69b..e5d19caeb6 100644 --- a/sys_path_hacks/lms/discussion/apps.py +++ b/sys_path_hacks/lms/discussion/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.apps instead of lms.djangoapps.discussion.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.apps') from lms.djangoapps.discussion.apps import * diff --git a/sys_path_hacks/lms/discussion/config/__init__.py b/sys_path_hacks/lms/discussion/config/__init__.py index 51976cf86c..95918ee523 100644 --- a/sys_path_hacks/lms/discussion/config/__init__.py +++ b/sys_path_hacks/lms/discussion/config/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.config instead of lms.djangoapps.discussion.config is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.config') from lms.djangoapps.discussion.config import * diff --git a/sys_path_hacks/lms/discussion/config/settings.py b/sys_path_hacks/lms/discussion/config/settings.py index dd40562a32..1af512277d 100644 --- a/sys_path_hacks/lms/discussion/config/settings.py +++ b/sys_path_hacks/lms/discussion/config/settings.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.config.settings instead of lms.djangoapps.discussion.config.settings is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.config.settings') from lms.djangoapps.discussion.config.settings import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/__init__.py b/sys_path_hacks/lms/discussion/django_comment_client/__init__.py index dcfe0c8610..eabc930e20 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/__init__.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client instead of lms.djangoapps.discussion.django_comment_client is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client') from lms.djangoapps.discussion.django_comment_client import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/base/__init__.py b/sys_path_hacks/lms/discussion/django_comment_client/base/__init__.py index 901107921c..1c4340ac23 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/base/__init__.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/base/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.base instead of lms.djangoapps.discussion.django_comment_client.base is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.base') from lms.djangoapps.discussion.django_comment_client.base import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/base/event_transformers.py b/sys_path_hacks/lms/discussion/django_comment_client/base/event_transformers.py index 33593e0034..c3743e8958 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/base/event_transformers.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/base/event_transformers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.base.event_transformers instead of lms.djangoapps.discussion.django_comment_client.base.event_transformers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.base.event_transformers') from lms.djangoapps.discussion.django_comment_client.base.event_transformers import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/base/tests.py b/sys_path_hacks/lms/discussion/django_comment_client/base/tests.py index bed9ff7341..c84fa78c87 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/base/tests.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/base/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.base.tests instead of lms.djangoapps.discussion.django_comment_client.base.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.base.tests') from lms.djangoapps.discussion.django_comment_client.base.tests import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/base/urls.py b/sys_path_hacks/lms/discussion/django_comment_client/base/urls.py index 5bdccd3b01..3c57b50c9a 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/base/urls.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/base/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.base.urls instead of lms.djangoapps.discussion.django_comment_client.base.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.base.urls') from lms.djangoapps.discussion.django_comment_client.base.urls import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/base/views.py b/sys_path_hacks/lms/discussion/django_comment_client/base/views.py index c40565cd78..48e3a3d19c 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/base/views.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/base/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.base.views instead of lms.djangoapps.discussion.django_comment_client.base.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.base.views') from lms.djangoapps.discussion.django_comment_client.base.views import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/constants.py b/sys_path_hacks/lms/discussion/django_comment_client/constants.py index 4e1d66b988..d3710fce6c 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/constants.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/constants.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.constants instead of lms.djangoapps.discussion.django_comment_client.constants is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.constants') from lms.djangoapps.discussion.django_comment_client.constants import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/middleware.py b/sys_path_hacks/lms/discussion/django_comment_client/middleware.py index c739deea81..ee471b205f 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/middleware.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/middleware.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.middleware instead of lms.djangoapps.discussion.django_comment_client.middleware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.middleware') from lms.djangoapps.discussion.django_comment_client.middleware import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/models.py b/sys_path_hacks/lms/discussion/django_comment_client/models.py index 306780346d..32ffa4b780 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/models.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.models instead of lms.djangoapps.discussion.django_comment_client.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.models') from lms.djangoapps.discussion.django_comment_client.models import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/permissions.py b/sys_path_hacks/lms/discussion/django_comment_client/permissions.py index e4773d8b83..e4ec94c670 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/permissions.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.permissions instead of lms.djangoapps.discussion.django_comment_client.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.permissions') from lms.djangoapps.discussion.django_comment_client.permissions import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/settings.py b/sys_path_hacks/lms/discussion/django_comment_client/settings.py index c99072d9f3..02b669d20d 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/settings.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/settings.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.settings instead of lms.djangoapps.discussion.django_comment_client.settings is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.settings') from lms.djangoapps.discussion.django_comment_client.settings import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/__init__.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/__init__.py index dbbce8db30..506e14c476 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/__init__.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests instead of lms.djangoapps.discussion.django_comment_client.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests') from lms.djangoapps.discussion.django_comment_client.tests import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/factories.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/factories.py index f98fe64755..57ddf50e7e 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/factories.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.factories instead of lms.djangoapps.discussion.django_comment_client.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.factories') from lms.djangoapps.discussion.django_comment_client.tests.factories import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/group_id.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/group_id.py index abedfed82f..b24ed582e4 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/group_id.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/group_id.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.group_id instead of lms.djangoapps.discussion.django_comment_client.tests.group_id is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.group_id') from lms.djangoapps.discussion.django_comment_client.tests.group_id import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/__init__.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/__init__.py index eea1715bea..c1124b10ee 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/__init__.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.mock_cs_server instead of lms.djangoapps.discussion.django_comment_client.tests.mock_cs_server is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.mock_cs_server') from lms.djangoapps.discussion.django_comment_client.tests.mock_cs_server import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/mock_cs_server.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/mock_cs_server.py index 4c06b98533..3552c1af59 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/mock_cs_server.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/mock_cs_server.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.mock_cs_server.mock_cs_server instead of lms.djangoapps.discussion.django_comment_client.tests.mock_cs_server.mock_cs_server is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.mock_cs_server.mock_cs_server') from lms.djangoapps.discussion.django_comment_client.tests.mock_cs_server.mock_cs_server import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/test_mock_cs_server.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/test_mock_cs_server.py index 4f37d64e79..b23b28b82c 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/test_mock_cs_server.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/mock_cs_server/test_mock_cs_server.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.mock_cs_server.test_mock_cs_server instead of lms.djangoapps.discussion.django_comment_client.tests.mock_cs_server.test_mock_cs_server is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.mock_cs_server.test_mock_cs_server') from lms.djangoapps.discussion.django_comment_client.tests.mock_cs_server.test_mock_cs_server import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/test_middleware.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/test_middleware.py index dcb5ced647..e8e56ab301 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/test_middleware.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/test_middleware.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.test_middleware instead of lms.djangoapps.discussion.django_comment_client.tests.test_middleware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.test_middleware') from lms.djangoapps.discussion.django_comment_client.tests.test_middleware import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/test_models.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/test_models.py index 1cd7e22b48..35006e6f29 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/test_models.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.test_models instead of lms.djangoapps.discussion.django_comment_client.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.test_models') from lms.djangoapps.discussion.django_comment_client.tests.test_models import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/test_utils.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/test_utils.py index 8f05a5766e..1b984561f5 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/test_utils.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/test_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.test_utils instead of lms.djangoapps.discussion.django_comment_client.tests.test_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.test_utils') from lms.djangoapps.discussion.django_comment_client.tests.test_utils import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/unicode.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/unicode.py index a38caff21e..046ae1014a 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/unicode.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/unicode.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.unicode instead of lms.djangoapps.discussion.django_comment_client.tests.unicode is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.unicode') from lms.djangoapps.discussion.django_comment_client.tests.unicode import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/tests/utils.py b/sys_path_hacks/lms/discussion/django_comment_client/tests/utils.py index a0062910bd..57497182a6 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/tests/utils.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/tests/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.tests.utils instead of lms.djangoapps.discussion.django_comment_client.tests.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.tests.utils') from lms.djangoapps.discussion.django_comment_client.tests.utils import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/urls.py b/sys_path_hacks/lms/discussion/django_comment_client/urls.py index 90824023f6..53a2808d6d 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/urls.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.urls instead of lms.djangoapps.discussion.django_comment_client.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.urls') from lms.djangoapps.discussion.django_comment_client.urls import * diff --git a/sys_path_hacks/lms/discussion/django_comment_client/utils.py b/sys_path_hacks/lms/discussion/django_comment_client/utils.py index 7667bfda76..dc03b2a2db 100644 --- a/sys_path_hacks/lms/discussion/django_comment_client/utils.py +++ b/sys_path_hacks/lms/discussion/django_comment_client/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.django_comment_client.utils instead of lms.djangoapps.discussion.django_comment_client.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.django_comment_client.utils') from lms.djangoapps.discussion.django_comment_client.utils import * diff --git a/sys_path_hacks/lms/discussion/exceptions.py b/sys_path_hacks/lms/discussion/exceptions.py index 5d0f65de3f..dac25adf6d 100644 --- a/sys_path_hacks/lms/discussion/exceptions.py +++ b/sys_path_hacks/lms/discussion/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.exceptions instead of lms.djangoapps.discussion.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.exceptions') from lms.djangoapps.discussion.exceptions import * diff --git a/sys_path_hacks/lms/discussion/management/__init__.py b/sys_path_hacks/lms/discussion/management/__init__.py index e26b38001d..f11c6ce22a 100644 --- a/sys_path_hacks/lms/discussion/management/__init__.py +++ b/sys_path_hacks/lms/discussion/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management instead of lms.djangoapps.discussion.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management') from lms.djangoapps.discussion.management import * diff --git a/sys_path_hacks/lms/discussion/management/commands/__init__.py b/sys_path_hacks/lms/discussion/management/commands/__init__.py index dd90253efc..11945b5282 100644 --- a/sys_path_hacks/lms/discussion/management/commands/__init__.py +++ b/sys_path_hacks/lms/discussion/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands instead of lms.djangoapps.discussion.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands') from lms.djangoapps.discussion.management.commands import * diff --git a/sys_path_hacks/lms/discussion/management/commands/assign_role.py b/sys_path_hacks/lms/discussion/management/commands/assign_role.py index 9c22eabe5e..5755824418 100644 --- a/sys_path_hacks/lms/discussion/management/commands/assign_role.py +++ b/sys_path_hacks/lms/discussion/management/commands/assign_role.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands.assign_role instead of lms.djangoapps.discussion.management.commands.assign_role is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands.assign_role') from lms.djangoapps.discussion.management.commands.assign_role import * diff --git a/sys_path_hacks/lms/discussion/management/commands/assign_roles_for_course.py b/sys_path_hacks/lms/discussion/management/commands/assign_roles_for_course.py index 16157e8ea4..4563149ca0 100644 --- a/sys_path_hacks/lms/discussion/management/commands/assign_roles_for_course.py +++ b/sys_path_hacks/lms/discussion/management/commands/assign_roles_for_course.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands.assign_roles_for_course instead of lms.djangoapps.discussion.management.commands.assign_roles_for_course is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands.assign_roles_for_course') from lms.djangoapps.discussion.management.commands.assign_roles_for_course import * diff --git a/sys_path_hacks/lms/discussion/management/commands/create_roles_for_existing.py b/sys_path_hacks/lms/discussion/management/commands/create_roles_for_existing.py index 90240e4ba1..37e58d5000 100644 --- a/sys_path_hacks/lms/discussion/management/commands/create_roles_for_existing.py +++ b/sys_path_hacks/lms/discussion/management/commands/create_roles_for_existing.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands.create_roles_for_existing instead of lms.djangoapps.discussion.management.commands.create_roles_for_existing is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands.create_roles_for_existing') from lms.djangoapps.discussion.management.commands.create_roles_for_existing import * diff --git a/sys_path_hacks/lms/discussion/management/commands/get_discussion_link.py b/sys_path_hacks/lms/discussion/management/commands/get_discussion_link.py index e8d79617e0..05ec0b5b09 100644 --- a/sys_path_hacks/lms/discussion/management/commands/get_discussion_link.py +++ b/sys_path_hacks/lms/discussion/management/commands/get_discussion_link.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands.get_discussion_link instead of lms.djangoapps.discussion.management.commands.get_discussion_link is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands.get_discussion_link') from lms.djangoapps.discussion.management.commands.get_discussion_link import * diff --git a/sys_path_hacks/lms/discussion/management/commands/reload_forum_users.py b/sys_path_hacks/lms/discussion/management/commands/reload_forum_users.py index 0f9c96cb8e..4943e9d3ea 100644 --- a/sys_path_hacks/lms/discussion/management/commands/reload_forum_users.py +++ b/sys_path_hacks/lms/discussion/management/commands/reload_forum_users.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands.reload_forum_users instead of lms.djangoapps.discussion.management.commands.reload_forum_users is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands.reload_forum_users') from lms.djangoapps.discussion.management.commands.reload_forum_users import * diff --git a/sys_path_hacks/lms/discussion/management/commands/seed_permissions_roles.py b/sys_path_hacks/lms/discussion/management/commands/seed_permissions_roles.py index fa1d836e8a..fd96ea3042 100644 --- a/sys_path_hacks/lms/discussion/management/commands/seed_permissions_roles.py +++ b/sys_path_hacks/lms/discussion/management/commands/seed_permissions_roles.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands.seed_permissions_roles instead of lms.djangoapps.discussion.management.commands.seed_permissions_roles is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands.seed_permissions_roles') from lms.djangoapps.discussion.management.commands.seed_permissions_roles import * diff --git a/sys_path_hacks/lms/discussion/management/commands/show_permissions.py b/sys_path_hacks/lms/discussion/management/commands/show_permissions.py index 434c61d434..559d001297 100644 --- a/sys_path_hacks/lms/discussion/management/commands/show_permissions.py +++ b/sys_path_hacks/lms/discussion/management/commands/show_permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands.show_permissions instead of lms.djangoapps.discussion.management.commands.show_permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands.show_permissions') from lms.djangoapps.discussion.management.commands.show_permissions import * diff --git a/sys_path_hacks/lms/discussion/management/commands/sync_user_info.py b/sys_path_hacks/lms/discussion/management/commands/sync_user_info.py index 948db2d929..1465fb5efc 100644 --- a/sys_path_hacks/lms/discussion/management/commands/sync_user_info.py +++ b/sys_path_hacks/lms/discussion/management/commands/sync_user_info.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.management.commands.sync_user_info instead of lms.djangoapps.discussion.management.commands.sync_user_info is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.management.commands.sync_user_info') from lms.djangoapps.discussion.management.commands.sync_user_info import * diff --git a/sys_path_hacks/lms/discussion/notification_prefs/__init__.py b/sys_path_hacks/lms/discussion/notification_prefs/__init__.py index 6eb9feeeb0..17fc9acdbe 100644 --- a/sys_path_hacks/lms/discussion/notification_prefs/__init__.py +++ b/sys_path_hacks/lms/discussion/notification_prefs/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.notification_prefs instead of lms.djangoapps.discussion.notification_prefs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.notification_prefs') from lms.djangoapps.discussion.notification_prefs import * diff --git a/sys_path_hacks/lms/discussion/notification_prefs/tests.py b/sys_path_hacks/lms/discussion/notification_prefs/tests.py index a53ed66b4e..291917e7bc 100644 --- a/sys_path_hacks/lms/discussion/notification_prefs/tests.py +++ b/sys_path_hacks/lms/discussion/notification_prefs/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.notification_prefs.tests instead of lms.djangoapps.discussion.notification_prefs.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.notification_prefs.tests') from lms.djangoapps.discussion.notification_prefs.tests import * diff --git a/sys_path_hacks/lms/discussion/notification_prefs/views.py b/sys_path_hacks/lms/discussion/notification_prefs/views.py index 0d36454f20..6ee682d280 100644 --- a/sys_path_hacks/lms/discussion/notification_prefs/views.py +++ b/sys_path_hacks/lms/discussion/notification_prefs/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.notification_prefs.views instead of lms.djangoapps.discussion.notification_prefs.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.notification_prefs.views') from lms.djangoapps.discussion.notification_prefs.views import * diff --git a/sys_path_hacks/lms/discussion/notifier_api/__init__.py b/sys_path_hacks/lms/discussion/notifier_api/__init__.py index 0ca49a4079..e791a8f328 100644 --- a/sys_path_hacks/lms/discussion/notifier_api/__init__.py +++ b/sys_path_hacks/lms/discussion/notifier_api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.notifier_api instead of lms.djangoapps.discussion.notifier_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.notifier_api') from lms.djangoapps.discussion.notifier_api import * diff --git a/sys_path_hacks/lms/discussion/notifier_api/serializers.py b/sys_path_hacks/lms/discussion/notifier_api/serializers.py index 17924cc996..d0b16ce64c 100644 --- a/sys_path_hacks/lms/discussion/notifier_api/serializers.py +++ b/sys_path_hacks/lms/discussion/notifier_api/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.notifier_api.serializers instead of lms.djangoapps.discussion.notifier_api.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.notifier_api.serializers') from lms.djangoapps.discussion.notifier_api.serializers import * diff --git a/sys_path_hacks/lms/discussion/notifier_api/tests.py b/sys_path_hacks/lms/discussion/notifier_api/tests.py index 42cde529d9..b0c2aa6a28 100644 --- a/sys_path_hacks/lms/discussion/notifier_api/tests.py +++ b/sys_path_hacks/lms/discussion/notifier_api/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.notifier_api.tests instead of lms.djangoapps.discussion.notifier_api.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.notifier_api.tests') from lms.djangoapps.discussion.notifier_api.tests import * diff --git a/sys_path_hacks/lms/discussion/notifier_api/urls.py b/sys_path_hacks/lms/discussion/notifier_api/urls.py index d74d78cb92..5ac538d909 100644 --- a/sys_path_hacks/lms/discussion/notifier_api/urls.py +++ b/sys_path_hacks/lms/discussion/notifier_api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.notifier_api.urls instead of lms.djangoapps.discussion.notifier_api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.notifier_api.urls') from lms.djangoapps.discussion.notifier_api.urls import * diff --git a/sys_path_hacks/lms/discussion/notifier_api/views.py b/sys_path_hacks/lms/discussion/notifier_api/views.py index 388574c132..4ce8de3f73 100644 --- a/sys_path_hacks/lms/discussion/notifier_api/views.py +++ b/sys_path_hacks/lms/discussion/notifier_api/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.notifier_api.views instead of lms.djangoapps.discussion.notifier_api.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.notifier_api.views') from lms.djangoapps.discussion.notifier_api.views import * diff --git a/sys_path_hacks/lms/discussion/plugins.py b/sys_path_hacks/lms/discussion/plugins.py index 265ae8ea9d..25d2779549 100644 --- a/sys_path_hacks/lms/discussion/plugins.py +++ b/sys_path_hacks/lms/discussion/plugins.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.plugins instead of lms.djangoapps.discussion.plugins is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.plugins') from lms.djangoapps.discussion.plugins import * diff --git a/sys_path_hacks/lms/discussion/rest_api/__init__.py b/sys_path_hacks/lms/discussion/rest_api/__init__.py index 3766cef054..42d8c655c9 100644 --- a/sys_path_hacks/lms/discussion/rest_api/__init__.py +++ b/sys_path_hacks/lms/discussion/rest_api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api instead of lms.djangoapps.discussion.rest_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api') from lms.djangoapps.discussion.rest_api import * diff --git a/sys_path_hacks/lms/discussion/rest_api/api.py b/sys_path_hacks/lms/discussion/rest_api/api.py index bd941090c7..2284556d24 100644 --- a/sys_path_hacks/lms/discussion/rest_api/api.py +++ b/sys_path_hacks/lms/discussion/rest_api/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.api instead of lms.djangoapps.discussion.rest_api.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.api') from lms.djangoapps.discussion.rest_api.api import * diff --git a/sys_path_hacks/lms/discussion/rest_api/exceptions.py b/sys_path_hacks/lms/discussion/rest_api/exceptions.py index dde29650b3..d5588f7cd3 100644 --- a/sys_path_hacks/lms/discussion/rest_api/exceptions.py +++ b/sys_path_hacks/lms/discussion/rest_api/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.exceptions instead of lms.djangoapps.discussion.rest_api.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.exceptions') from lms.djangoapps.discussion.rest_api.exceptions import * diff --git a/sys_path_hacks/lms/discussion/rest_api/forms.py b/sys_path_hacks/lms/discussion/rest_api/forms.py index d0df5a6675..ccc1037389 100644 --- a/sys_path_hacks/lms/discussion/rest_api/forms.py +++ b/sys_path_hacks/lms/discussion/rest_api/forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.forms instead of lms.djangoapps.discussion.rest_api.forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.forms') from lms.djangoapps.discussion.rest_api.forms import * diff --git a/sys_path_hacks/lms/discussion/rest_api/pagination.py b/sys_path_hacks/lms/discussion/rest_api/pagination.py index c9de5d8fc0..d47d7eb85a 100644 --- a/sys_path_hacks/lms/discussion/rest_api/pagination.py +++ b/sys_path_hacks/lms/discussion/rest_api/pagination.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.pagination instead of lms.djangoapps.discussion.rest_api.pagination is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.pagination') from lms.djangoapps.discussion.rest_api.pagination import * diff --git a/sys_path_hacks/lms/discussion/rest_api/permissions.py b/sys_path_hacks/lms/discussion/rest_api/permissions.py index 71dfee1506..ddbad141fc 100644 --- a/sys_path_hacks/lms/discussion/rest_api/permissions.py +++ b/sys_path_hacks/lms/discussion/rest_api/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.permissions instead of lms.djangoapps.discussion.rest_api.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.permissions') from lms.djangoapps.discussion.rest_api.permissions import * diff --git a/sys_path_hacks/lms/discussion/rest_api/render.py b/sys_path_hacks/lms/discussion/rest_api/render.py index f49a9ead9a..f11b0f66d4 100644 --- a/sys_path_hacks/lms/discussion/rest_api/render.py +++ b/sys_path_hacks/lms/discussion/rest_api/render.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.render instead of lms.djangoapps.discussion.rest_api.render is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.render') from lms.djangoapps.discussion.rest_api.render import * diff --git a/sys_path_hacks/lms/discussion/rest_api/serializers.py b/sys_path_hacks/lms/discussion/rest_api/serializers.py index 503c2bf82e..004249f86e 100644 --- a/sys_path_hacks/lms/discussion/rest_api/serializers.py +++ b/sys_path_hacks/lms/discussion/rest_api/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.serializers instead of lms.djangoapps.discussion.rest_api.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.serializers') from lms.djangoapps.discussion.rest_api.serializers import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/__init__.py b/sys_path_hacks/lms/discussion/rest_api/tests/__init__.py index fc53b16759..15234f2836 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/__init__.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests instead of lms.djangoapps.discussion.rest_api.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests') from lms.djangoapps.discussion.rest_api.tests import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/test_api.py b/sys_path_hacks/lms/discussion/rest_api/tests/test_api.py index c376789f5c..ed4d580967 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/test_api.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests.test_api instead of lms.djangoapps.discussion.rest_api.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests.test_api') from lms.djangoapps.discussion.rest_api.tests.test_api import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/test_forms.py b/sys_path_hacks/lms/discussion/rest_api/tests/test_forms.py index b4a7f14792..12dace91d2 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/test_forms.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/test_forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests.test_forms instead of lms.djangoapps.discussion.rest_api.tests.test_forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests.test_forms') from lms.djangoapps.discussion.rest_api.tests.test_forms import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/test_pagination.py b/sys_path_hacks/lms/discussion/rest_api/tests/test_pagination.py index 51134f01d2..2fb4cfaca1 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/test_pagination.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/test_pagination.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests.test_pagination instead of lms.djangoapps.discussion.rest_api.tests.test_pagination is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests.test_pagination') from lms.djangoapps.discussion.rest_api.tests.test_pagination import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/test_permissions.py b/sys_path_hacks/lms/discussion/rest_api/tests/test_permissions.py index 7d78e52caf..088d9e8aed 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/test_permissions.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/test_permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests.test_permissions instead of lms.djangoapps.discussion.rest_api.tests.test_permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests.test_permissions') from lms.djangoapps.discussion.rest_api.tests.test_permissions import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/test_render.py b/sys_path_hacks/lms/discussion/rest_api/tests/test_render.py index 68a1ce6176..bc6fb877b0 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/test_render.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/test_render.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests.test_render instead of lms.djangoapps.discussion.rest_api.tests.test_render is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests.test_render') from lms.djangoapps.discussion.rest_api.tests.test_render import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/test_serializers.py b/sys_path_hacks/lms/discussion/rest_api/tests/test_serializers.py index 7e4829375e..93bb434f6a 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/test_serializers.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/test_serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests.test_serializers instead of lms.djangoapps.discussion.rest_api.tests.test_serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests.test_serializers') from lms.djangoapps.discussion.rest_api.tests.test_serializers import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/test_views.py b/sys_path_hacks/lms/discussion/rest_api/tests/test_views.py index 5414c5e587..88b62596ad 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/test_views.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests.test_views instead of lms.djangoapps.discussion.rest_api.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests.test_views') from lms.djangoapps.discussion.rest_api.tests.test_views import * diff --git a/sys_path_hacks/lms/discussion/rest_api/tests/utils.py b/sys_path_hacks/lms/discussion/rest_api/tests/utils.py index 1759b88b43..802839084e 100644 --- a/sys_path_hacks/lms/discussion/rest_api/tests/utils.py +++ b/sys_path_hacks/lms/discussion/rest_api/tests/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.tests.utils instead of lms.djangoapps.discussion.rest_api.tests.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.tests.utils') from lms.djangoapps.discussion.rest_api.tests.utils import * diff --git a/sys_path_hacks/lms/discussion/rest_api/urls.py b/sys_path_hacks/lms/discussion/rest_api/urls.py index 16e51a3a68..2461e8c1ce 100644 --- a/sys_path_hacks/lms/discussion/rest_api/urls.py +++ b/sys_path_hacks/lms/discussion/rest_api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.urls instead of lms.djangoapps.discussion.rest_api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.urls') from lms.djangoapps.discussion.rest_api.urls import * diff --git a/sys_path_hacks/lms/discussion/rest_api/views.py b/sys_path_hacks/lms/discussion/rest_api/views.py index 2678eb3a8e..7e0bd705d3 100644 --- a/sys_path_hacks/lms/discussion/rest_api/views.py +++ b/sys_path_hacks/lms/discussion/rest_api/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.rest_api.views instead of lms.djangoapps.discussion.rest_api.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.rest_api.views') from lms.djangoapps.discussion.rest_api.views import * diff --git a/sys_path_hacks/lms/discussion/settings/__init__.py b/sys_path_hacks/lms/discussion/settings/__init__.py index 53fd0336f5..e654d82e89 100644 --- a/sys_path_hacks/lms/discussion/settings/__init__.py +++ b/sys_path_hacks/lms/discussion/settings/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.settings instead of lms.djangoapps.discussion.settings is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.settings') from lms.djangoapps.discussion.settings import * diff --git a/sys_path_hacks/lms/discussion/settings/common.py b/sys_path_hacks/lms/discussion/settings/common.py index 46269bc2cf..4fbd196594 100644 --- a/sys_path_hacks/lms/discussion/settings/common.py +++ b/sys_path_hacks/lms/discussion/settings/common.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.settings.common instead of lms.djangoapps.discussion.settings.common is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.settings.common') from lms.djangoapps.discussion.settings.common import * diff --git a/sys_path_hacks/lms/discussion/signals/__init__.py b/sys_path_hacks/lms/discussion/signals/__init__.py index e58413cc25..bf3aa9bc99 100644 --- a/sys_path_hacks/lms/discussion/signals/__init__.py +++ b/sys_path_hacks/lms/discussion/signals/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.signals instead of lms.djangoapps.discussion.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.signals') from lms.djangoapps.discussion.signals import * diff --git a/sys_path_hacks/lms/discussion/signals/handlers.py b/sys_path_hacks/lms/discussion/signals/handlers.py index 04f0bb6a41..45eb6f65ae 100644 --- a/sys_path_hacks/lms/discussion/signals/handlers.py +++ b/sys_path_hacks/lms/discussion/signals/handlers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.signals.handlers instead of lms.djangoapps.discussion.signals.handlers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.signals.handlers') from lms.djangoapps.discussion.signals.handlers import * diff --git a/sys_path_hacks/lms/discussion/tasks.py b/sys_path_hacks/lms/discussion/tasks.py index 8a3b1cce0a..b64ae37067 100644 --- a/sys_path_hacks/lms/discussion/tasks.py +++ b/sys_path_hacks/lms/discussion/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.tasks instead of lms.djangoapps.discussion.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.tasks') from lms.djangoapps.discussion.tasks import * diff --git a/sys_path_hacks/lms/discussion/tests/__init__.py b/sys_path_hacks/lms/discussion/tests/__init__.py index fdd600c6a1..e96973bf77 100644 --- a/sys_path_hacks/lms/discussion/tests/__init__.py +++ b/sys_path_hacks/lms/discussion/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.tests instead of lms.djangoapps.discussion.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.tests') from lms.djangoapps.discussion.tests import * diff --git a/sys_path_hacks/lms/discussion/tests/test_signals.py b/sys_path_hacks/lms/discussion/tests/test_signals.py index d89f44bdee..568b4a8efd 100644 --- a/sys_path_hacks/lms/discussion/tests/test_signals.py +++ b/sys_path_hacks/lms/discussion/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.tests.test_signals instead of lms.djangoapps.discussion.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.tests.test_signals') from lms.djangoapps.discussion.tests.test_signals import * diff --git a/sys_path_hacks/lms/discussion/tests/test_tasks.py b/sys_path_hacks/lms/discussion/tests/test_tasks.py index db40ddc2dc..ec39cfd656 100644 --- a/sys_path_hacks/lms/discussion/tests/test_tasks.py +++ b/sys_path_hacks/lms/discussion/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.tests.test_tasks instead of lms.djangoapps.discussion.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.tests.test_tasks') from lms.djangoapps.discussion.tests.test_tasks import * diff --git a/sys_path_hacks/lms/discussion/tests/test_views.py b/sys_path_hacks/lms/discussion/tests/test_views.py index bbd2354bf9..21e19ffae1 100644 --- a/sys_path_hacks/lms/discussion/tests/test_views.py +++ b/sys_path_hacks/lms/discussion/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.tests.test_views instead of lms.djangoapps.discussion.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.tests.test_views') from lms.djangoapps.discussion.tests.test_views import * diff --git a/sys_path_hacks/lms/discussion/urls.py b/sys_path_hacks/lms/discussion/urls.py index cba1d6ffde..d951341993 100644 --- a/sys_path_hacks/lms/discussion/urls.py +++ b/sys_path_hacks/lms/discussion/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.urls instead of lms.djangoapps.discussion.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.urls') from lms.djangoapps.discussion.urls import * diff --git a/sys_path_hacks/lms/discussion/views.py b/sys_path_hacks/lms/discussion/views.py index 249b2e9604..b435ea2d6f 100644 --- a/sys_path_hacks/lms/discussion/views.py +++ b/sys_path_hacks/lms/discussion/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing discussion.views instead of lms.djangoapps.discussion.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'discussion.views') from lms.djangoapps.discussion.views import * diff --git a/sys_path_hacks/lms/edxnotes/__init__.py b/sys_path_hacks/lms/edxnotes/__init__.py index f570a148c7..879cd91dfc 100644 --- a/sys_path_hacks/lms/edxnotes/__init__.py +++ b/sys_path_hacks/lms/edxnotes/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes instead of lms.djangoapps.edxnotes is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes') from lms.djangoapps.edxnotes import * diff --git a/sys_path_hacks/lms/edxnotes/api_urls.py b/sys_path_hacks/lms/edxnotes/api_urls.py index 7218ef5feb..a6c87cf1ab 100644 --- a/sys_path_hacks/lms/edxnotes/api_urls.py +++ b/sys_path_hacks/lms/edxnotes/api_urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes.api_urls instead of lms.djangoapps.edxnotes.api_urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes.api_urls') from lms.djangoapps.edxnotes.api_urls import * diff --git a/sys_path_hacks/lms/edxnotes/decorators.py b/sys_path_hacks/lms/edxnotes/decorators.py index a4abad3514..8686011eea 100644 --- a/sys_path_hacks/lms/edxnotes/decorators.py +++ b/sys_path_hacks/lms/edxnotes/decorators.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes.decorators instead of lms.djangoapps.edxnotes.decorators is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes.decorators') from lms.djangoapps.edxnotes.decorators import * diff --git a/sys_path_hacks/lms/edxnotes/exceptions.py b/sys_path_hacks/lms/edxnotes/exceptions.py index 5fd5f1cc84..bb58f33d37 100644 --- a/sys_path_hacks/lms/edxnotes/exceptions.py +++ b/sys_path_hacks/lms/edxnotes/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes.exceptions instead of lms.djangoapps.edxnotes.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes.exceptions') from lms.djangoapps.edxnotes.exceptions import * diff --git a/sys_path_hacks/lms/edxnotes/helpers.py b/sys_path_hacks/lms/edxnotes/helpers.py index d0c408305a..6774c4ce79 100644 --- a/sys_path_hacks/lms/edxnotes/helpers.py +++ b/sys_path_hacks/lms/edxnotes/helpers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes.helpers instead of lms.djangoapps.edxnotes.helpers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes.helpers') from lms.djangoapps.edxnotes.helpers import * diff --git a/sys_path_hacks/lms/edxnotes/plugins.py b/sys_path_hacks/lms/edxnotes/plugins.py index 581c102cb5..3443afc68b 100644 --- a/sys_path_hacks/lms/edxnotes/plugins.py +++ b/sys_path_hacks/lms/edxnotes/plugins.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes.plugins instead of lms.djangoapps.edxnotes.plugins is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes.plugins') from lms.djangoapps.edxnotes.plugins import * diff --git a/sys_path_hacks/lms/edxnotes/tests.py b/sys_path_hacks/lms/edxnotes/tests.py index 72fd116a38..97cfa59769 100644 --- a/sys_path_hacks/lms/edxnotes/tests.py +++ b/sys_path_hacks/lms/edxnotes/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes.tests instead of lms.djangoapps.edxnotes.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes.tests') from lms.djangoapps.edxnotes.tests import * diff --git a/sys_path_hacks/lms/edxnotes/urls.py b/sys_path_hacks/lms/edxnotes/urls.py index 72c5af4421..9f93e8d768 100644 --- a/sys_path_hacks/lms/edxnotes/urls.py +++ b/sys_path_hacks/lms/edxnotes/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes.urls instead of lms.djangoapps.edxnotes.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes.urls') from lms.djangoapps.edxnotes.urls import * diff --git a/sys_path_hacks/lms/edxnotes/views.py b/sys_path_hacks/lms/edxnotes/views.py index 399313b9b2..cda2e97dcb 100644 --- a/sys_path_hacks/lms/edxnotes/views.py +++ b/sys_path_hacks/lms/edxnotes/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing edxnotes.views instead of lms.djangoapps.edxnotes.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'edxnotes.views') from lms.djangoapps.edxnotes.views import * diff --git a/sys_path_hacks/lms/email_marketing/__init__.py b/sys_path_hacks/lms/email_marketing/__init__.py index 6b3450e40b..41ebe3be93 100644 --- a/sys_path_hacks/lms/email_marketing/__init__.py +++ b/sys_path_hacks/lms/email_marketing/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing email_marketing instead of lms.djangoapps.email_marketing is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'email_marketing') from lms.djangoapps.email_marketing import * diff --git a/sys_path_hacks/lms/email_marketing/admin.py b/sys_path_hacks/lms/email_marketing/admin.py index 0ca9659172..cc737b7985 100644 --- a/sys_path_hacks/lms/email_marketing/admin.py +++ b/sys_path_hacks/lms/email_marketing/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing email_marketing.admin instead of lms.djangoapps.email_marketing.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'email_marketing.admin') from lms.djangoapps.email_marketing.admin import * diff --git a/sys_path_hacks/lms/email_marketing/apps.py b/sys_path_hacks/lms/email_marketing/apps.py index ce2562daae..6291d344c2 100644 --- a/sys_path_hacks/lms/email_marketing/apps.py +++ b/sys_path_hacks/lms/email_marketing/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing email_marketing.apps instead of lms.djangoapps.email_marketing.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'email_marketing.apps') from lms.djangoapps.email_marketing.apps import * diff --git a/sys_path_hacks/lms/email_marketing/models.py b/sys_path_hacks/lms/email_marketing/models.py index 0d18b874e4..f7344c3b31 100644 --- a/sys_path_hacks/lms/email_marketing/models.py +++ b/sys_path_hacks/lms/email_marketing/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing email_marketing.models instead of lms.djangoapps.email_marketing.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'email_marketing.models') from lms.djangoapps.email_marketing.models import * diff --git a/sys_path_hacks/lms/email_marketing/signals.py b/sys_path_hacks/lms/email_marketing/signals.py index 1fdaddc764..30b6ab9323 100644 --- a/sys_path_hacks/lms/email_marketing/signals.py +++ b/sys_path_hacks/lms/email_marketing/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing email_marketing.signals instead of lms.djangoapps.email_marketing.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'email_marketing.signals') from lms.djangoapps.email_marketing.signals import * diff --git a/sys_path_hacks/lms/email_marketing/tasks.py b/sys_path_hacks/lms/email_marketing/tasks.py index 266f59bbb4..09662d303a 100644 --- a/sys_path_hacks/lms/email_marketing/tasks.py +++ b/sys_path_hacks/lms/email_marketing/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing email_marketing.tasks instead of lms.djangoapps.email_marketing.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'email_marketing.tasks') from lms.djangoapps.email_marketing.tasks import * diff --git a/sys_path_hacks/lms/email_marketing/tests/__init__.py b/sys_path_hacks/lms/email_marketing/tests/__init__.py index 12f5201a90..2832203410 100644 --- a/sys_path_hacks/lms/email_marketing/tests/__init__.py +++ b/sys_path_hacks/lms/email_marketing/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing email_marketing.tests instead of lms.djangoapps.email_marketing.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'email_marketing.tests') from lms.djangoapps.email_marketing.tests import * diff --git a/sys_path_hacks/lms/email_marketing/tests/test_signals.py b/sys_path_hacks/lms/email_marketing/tests/test_signals.py index 55218cdc12..3f31e435bf 100644 --- a/sys_path_hacks/lms/email_marketing/tests/test_signals.py +++ b/sys_path_hacks/lms/email_marketing/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing email_marketing.tests.test_signals instead of lms.djangoapps.email_marketing.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'email_marketing.tests.test_signals') from lms.djangoapps.email_marketing.tests.test_signals import * diff --git a/sys_path_hacks/lms/experiments/__init__.py b/sys_path_hacks/lms/experiments/__init__.py index c3d7bcbd50..1544032b2a 100644 --- a/sys_path_hacks/lms/experiments/__init__.py +++ b/sys_path_hacks/lms/experiments/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments instead of lms.djangoapps.experiments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments') from lms.djangoapps.experiments import * diff --git a/sys_path_hacks/lms/experiments/admin.py b/sys_path_hacks/lms/experiments/admin.py index 806225d954..e8a7f46a23 100644 --- a/sys_path_hacks/lms/experiments/admin.py +++ b/sys_path_hacks/lms/experiments/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.admin instead of lms.djangoapps.experiments.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.admin') from lms.djangoapps.experiments.admin import * diff --git a/sys_path_hacks/lms/experiments/apps.py b/sys_path_hacks/lms/experiments/apps.py index cdf86eadff..803e5ea44d 100644 --- a/sys_path_hacks/lms/experiments/apps.py +++ b/sys_path_hacks/lms/experiments/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.apps instead of lms.djangoapps.experiments.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.apps') from lms.djangoapps.experiments.apps import * diff --git a/sys_path_hacks/lms/experiments/factories.py b/sys_path_hacks/lms/experiments/factories.py index 188cbad402..83c2f77d58 100644 --- a/sys_path_hacks/lms/experiments/factories.py +++ b/sys_path_hacks/lms/experiments/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.factories instead of lms.djangoapps.experiments.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.factories') from lms.djangoapps.experiments.factories import * diff --git a/sys_path_hacks/lms/experiments/filters.py b/sys_path_hacks/lms/experiments/filters.py index 7fd5d39607..47b2e3896c 100644 --- a/sys_path_hacks/lms/experiments/filters.py +++ b/sys_path_hacks/lms/experiments/filters.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.filters instead of lms.djangoapps.experiments.filters is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.filters') from lms.djangoapps.experiments.filters import * diff --git a/sys_path_hacks/lms/experiments/flags.py b/sys_path_hacks/lms/experiments/flags.py index dea22439fc..be02b899ac 100644 --- a/sys_path_hacks/lms/experiments/flags.py +++ b/sys_path_hacks/lms/experiments/flags.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.flags instead of lms.djangoapps.experiments.flags is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.flags') from lms.djangoapps.experiments.flags import * diff --git a/sys_path_hacks/lms/experiments/models.py b/sys_path_hacks/lms/experiments/models.py index 230b02210f..dc51fc3b3a 100644 --- a/sys_path_hacks/lms/experiments/models.py +++ b/sys_path_hacks/lms/experiments/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.models instead of lms.djangoapps.experiments.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.models') from lms.djangoapps.experiments.models import * diff --git a/sys_path_hacks/lms/experiments/permissions.py b/sys_path_hacks/lms/experiments/permissions.py index 37d144ccaa..508c23fa25 100644 --- a/sys_path_hacks/lms/experiments/permissions.py +++ b/sys_path_hacks/lms/experiments/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.permissions instead of lms.djangoapps.experiments.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.permissions') from lms.djangoapps.experiments.permissions import * diff --git a/sys_path_hacks/lms/experiments/routers.py b/sys_path_hacks/lms/experiments/routers.py index f19519f97e..689531822f 100644 --- a/sys_path_hacks/lms/experiments/routers.py +++ b/sys_path_hacks/lms/experiments/routers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.routers instead of lms.djangoapps.experiments.routers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.routers') from lms.djangoapps.experiments.routers import * diff --git a/sys_path_hacks/lms/experiments/serializers.py b/sys_path_hacks/lms/experiments/serializers.py index 3a61ac99b2..ac32c1af40 100644 --- a/sys_path_hacks/lms/experiments/serializers.py +++ b/sys_path_hacks/lms/experiments/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.serializers instead of lms.djangoapps.experiments.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.serializers') from lms.djangoapps.experiments.serializers import * diff --git a/sys_path_hacks/lms/experiments/stable_bucketing.py b/sys_path_hacks/lms/experiments/stable_bucketing.py index 22bb5fc0df..789f8149ed 100644 --- a/sys_path_hacks/lms/experiments/stable_bucketing.py +++ b/sys_path_hacks/lms/experiments/stable_bucketing.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.stable_bucketing instead of lms.djangoapps.experiments.stable_bucketing is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.stable_bucketing') from lms.djangoapps.experiments.stable_bucketing import * diff --git a/sys_path_hacks/lms/experiments/tests/__init__.py b/sys_path_hacks/lms/experiments/tests/__init__.py index 01900c29a9..8d7e01c87f 100644 --- a/sys_path_hacks/lms/experiments/tests/__init__.py +++ b/sys_path_hacks/lms/experiments/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.tests instead of lms.djangoapps.experiments.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.tests') from lms.djangoapps.experiments.tests import * diff --git a/sys_path_hacks/lms/experiments/tests/test_flags.py b/sys_path_hacks/lms/experiments/tests/test_flags.py index 01a836088e..15173b582c 100644 --- a/sys_path_hacks/lms/experiments/tests/test_flags.py +++ b/sys_path_hacks/lms/experiments/tests/test_flags.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.tests.test_flags instead of lms.djangoapps.experiments.tests.test_flags is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.tests.test_flags') from lms.djangoapps.experiments.tests.test_flags import * diff --git a/sys_path_hacks/lms/experiments/tests/test_utils.py b/sys_path_hacks/lms/experiments/tests/test_utils.py index 2408d8c75b..3f93023580 100644 --- a/sys_path_hacks/lms/experiments/tests/test_utils.py +++ b/sys_path_hacks/lms/experiments/tests/test_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.tests.test_utils instead of lms.djangoapps.experiments.tests.test_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.tests.test_utils') from lms.djangoapps.experiments.tests.test_utils import * diff --git a/sys_path_hacks/lms/experiments/tests/test_views.py b/sys_path_hacks/lms/experiments/tests/test_views.py index 62ef2b7faf..4cdec2d5a7 100644 --- a/sys_path_hacks/lms/experiments/tests/test_views.py +++ b/sys_path_hacks/lms/experiments/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.tests.test_views instead of lms.djangoapps.experiments.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.tests.test_views') from lms.djangoapps.experiments.tests.test_views import * diff --git a/sys_path_hacks/lms/experiments/tests/test_views_custom.py b/sys_path_hacks/lms/experiments/tests/test_views_custom.py index 9ed89586ad..68539b99fa 100644 --- a/sys_path_hacks/lms/experiments/tests/test_views_custom.py +++ b/sys_path_hacks/lms/experiments/tests/test_views_custom.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.tests.test_views_custom instead of lms.djangoapps.experiments.tests.test_views_custom is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.tests.test_views_custom') from lms.djangoapps.experiments.tests.test_views_custom import * diff --git a/sys_path_hacks/lms/experiments/urls.py b/sys_path_hacks/lms/experiments/urls.py index 1ba262b76c..7f4ca60653 100644 --- a/sys_path_hacks/lms/experiments/urls.py +++ b/sys_path_hacks/lms/experiments/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.urls instead of lms.djangoapps.experiments.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.urls') from lms.djangoapps.experiments.urls import * diff --git a/sys_path_hacks/lms/experiments/utils.py b/sys_path_hacks/lms/experiments/utils.py index 780482fa3b..0d8c8cf5e1 100644 --- a/sys_path_hacks/lms/experiments/utils.py +++ b/sys_path_hacks/lms/experiments/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.utils instead of lms.djangoapps.experiments.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.utils') from lms.djangoapps.experiments.utils import * diff --git a/sys_path_hacks/lms/experiments/views.py b/sys_path_hacks/lms/experiments/views.py index f57da52a80..c7ea4c202e 100644 --- a/sys_path_hacks/lms/experiments/views.py +++ b/sys_path_hacks/lms/experiments/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.views instead of lms.djangoapps.experiments.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.views') from lms.djangoapps.experiments.views import * diff --git a/sys_path_hacks/lms/experiments/views_custom.py b/sys_path_hacks/lms/experiments/views_custom.py index 05a85788fd..ce4e6a2508 100644 --- a/sys_path_hacks/lms/experiments/views_custom.py +++ b/sys_path_hacks/lms/experiments/views_custom.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing experiments.views_custom instead of lms.djangoapps.experiments.views_custom is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'experiments.views_custom') from lms.djangoapps.experiments.views_custom import * diff --git a/sys_path_hacks/lms/gating/__init__.py b/sys_path_hacks/lms/gating/__init__.py index af67a8f5e4..f6b51633c2 100644 --- a/sys_path_hacks/lms/gating/__init__.py +++ b/sys_path_hacks/lms/gating/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating instead of lms.djangoapps.gating is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating') from lms.djangoapps.gating import * diff --git a/sys_path_hacks/lms/gating/api.py b/sys_path_hacks/lms/gating/api.py index d4ff8902c1..29bf855c0e 100644 --- a/sys_path_hacks/lms/gating/api.py +++ b/sys_path_hacks/lms/gating/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating.api instead of lms.djangoapps.gating.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating.api') from lms.djangoapps.gating.api import * diff --git a/sys_path_hacks/lms/gating/apps.py b/sys_path_hacks/lms/gating/apps.py index d696a544bb..501bb292ca 100644 --- a/sys_path_hacks/lms/gating/apps.py +++ b/sys_path_hacks/lms/gating/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating.apps instead of lms.djangoapps.gating.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating.apps') from lms.djangoapps.gating.apps import * diff --git a/sys_path_hacks/lms/gating/signals.py b/sys_path_hacks/lms/gating/signals.py index 76b35c2033..0220126496 100644 --- a/sys_path_hacks/lms/gating/signals.py +++ b/sys_path_hacks/lms/gating/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating.signals instead of lms.djangoapps.gating.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating.signals') from lms.djangoapps.gating.signals import * diff --git a/sys_path_hacks/lms/gating/tasks.py b/sys_path_hacks/lms/gating/tasks.py index 3ef6d500b7..bd4cebe7a6 100644 --- a/sys_path_hacks/lms/gating/tasks.py +++ b/sys_path_hacks/lms/gating/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating.tasks instead of lms.djangoapps.gating.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating.tasks') from lms.djangoapps.gating.tasks import * diff --git a/sys_path_hacks/lms/gating/tests/__init__.py b/sys_path_hacks/lms/gating/tests/__init__.py index 2a7e7ea967..940cd13bd8 100644 --- a/sys_path_hacks/lms/gating/tests/__init__.py +++ b/sys_path_hacks/lms/gating/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating.tests instead of lms.djangoapps.gating.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating.tests') from lms.djangoapps.gating.tests import * diff --git a/sys_path_hacks/lms/gating/tests/test_api.py b/sys_path_hacks/lms/gating/tests/test_api.py index a3bf0fec5e..02c83b8cb1 100644 --- a/sys_path_hacks/lms/gating/tests/test_api.py +++ b/sys_path_hacks/lms/gating/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating.tests.test_api instead of lms.djangoapps.gating.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating.tests.test_api') from lms.djangoapps.gating.tests.test_api import * diff --git a/sys_path_hacks/lms/gating/tests/test_integration.py b/sys_path_hacks/lms/gating/tests/test_integration.py index 8f27c00f78..a807573caf 100644 --- a/sys_path_hacks/lms/gating/tests/test_integration.py +++ b/sys_path_hacks/lms/gating/tests/test_integration.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating.tests.test_integration instead of lms.djangoapps.gating.tests.test_integration is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating.tests.test_integration') from lms.djangoapps.gating.tests.test_integration import * diff --git a/sys_path_hacks/lms/gating/tests/test_signals.py b/sys_path_hacks/lms/gating/tests/test_signals.py index 592d5556ce..2453483cae 100644 --- a/sys_path_hacks/lms/gating/tests/test_signals.py +++ b/sys_path_hacks/lms/gating/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing gating.tests.test_signals instead of lms.djangoapps.gating.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'gating.tests.test_signals') from lms.djangoapps.gating.tests.test_signals import * diff --git a/sys_path_hacks/lms/grades/__init__.py b/sys_path_hacks/lms/grades/__init__.py index 1409361025..01e142d31d 100644 --- a/sys_path_hacks/lms/grades/__init__.py +++ b/sys_path_hacks/lms/grades/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades instead of lms.djangoapps.grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades') from lms.djangoapps.grades import * diff --git a/sys_path_hacks/lms/grades/admin.py b/sys_path_hacks/lms/grades/admin.py index ba28cbb998..28a6446457 100644 --- a/sys_path_hacks/lms/grades/admin.py +++ b/sys_path_hacks/lms/grades/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.admin instead of lms.djangoapps.grades.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.admin') from lms.djangoapps.grades.admin import * diff --git a/sys_path_hacks/lms/grades/api.py b/sys_path_hacks/lms/grades/api.py index d242e293e9..6d81fe51ce 100644 --- a/sys_path_hacks/lms/grades/api.py +++ b/sys_path_hacks/lms/grades/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.api instead of lms.djangoapps.grades.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.api') from lms.djangoapps.grades.api import * diff --git a/sys_path_hacks/lms/grades/apps.py b/sys_path_hacks/lms/grades/apps.py index d7c5988253..2b473676ad 100644 --- a/sys_path_hacks/lms/grades/apps.py +++ b/sys_path_hacks/lms/grades/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.apps instead of lms.djangoapps.grades.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.apps') from lms.djangoapps.grades.apps import * diff --git a/sys_path_hacks/lms/grades/config/__init__.py b/sys_path_hacks/lms/grades/config/__init__.py index 2d913cafe9..40f43777bd 100644 --- a/sys_path_hacks/lms/grades/config/__init__.py +++ b/sys_path_hacks/lms/grades/config/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.config instead of lms.djangoapps.grades.config is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.config') from lms.djangoapps.grades.config import * diff --git a/sys_path_hacks/lms/grades/config/forms.py b/sys_path_hacks/lms/grades/config/forms.py index ebaa3ad71e..bc4642134d 100644 --- a/sys_path_hacks/lms/grades/config/forms.py +++ b/sys_path_hacks/lms/grades/config/forms.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.config.forms instead of lms.djangoapps.grades.config.forms is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.config.forms') from lms.djangoapps.grades.config.forms import * diff --git a/sys_path_hacks/lms/grades/config/models.py b/sys_path_hacks/lms/grades/config/models.py index 73e4d0bfcd..9c1c3a5b44 100644 --- a/sys_path_hacks/lms/grades/config/models.py +++ b/sys_path_hacks/lms/grades/config/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.config.models instead of lms.djangoapps.grades.config.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.config.models') from lms.djangoapps.grades.config.models import * diff --git a/sys_path_hacks/lms/grades/config/tests/__init__.py b/sys_path_hacks/lms/grades/config/tests/__init__.py index f2a8583e92..2f3fae5e86 100644 --- a/sys_path_hacks/lms/grades/config/tests/__init__.py +++ b/sys_path_hacks/lms/grades/config/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.config.tests instead of lms.djangoapps.grades.config.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.config.tests') from lms.djangoapps.grades.config.tests import * diff --git a/sys_path_hacks/lms/grades/config/tests/test_models.py b/sys_path_hacks/lms/grades/config/tests/test_models.py index 330863ea6c..460adb0899 100644 --- a/sys_path_hacks/lms/grades/config/tests/test_models.py +++ b/sys_path_hacks/lms/grades/config/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.config.tests.test_models instead of lms.djangoapps.grades.config.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.config.tests.test_models') from lms.djangoapps.grades.config.tests.test_models import * diff --git a/sys_path_hacks/lms/grades/config/tests/utils.py b/sys_path_hacks/lms/grades/config/tests/utils.py index 06f7e24d54..f977aca53b 100644 --- a/sys_path_hacks/lms/grades/config/tests/utils.py +++ b/sys_path_hacks/lms/grades/config/tests/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.config.tests.utils instead of lms.djangoapps.grades.config.tests.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.config.tests.utils') from lms.djangoapps.grades.config.tests.utils import * diff --git a/sys_path_hacks/lms/grades/config/waffle.py b/sys_path_hacks/lms/grades/config/waffle.py index 253a349b6b..9efe00c879 100644 --- a/sys_path_hacks/lms/grades/config/waffle.py +++ b/sys_path_hacks/lms/grades/config/waffle.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.config.waffle instead of lms.djangoapps.grades.config.waffle is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.config.waffle') from lms.djangoapps.grades.config.waffle import * diff --git a/sys_path_hacks/lms/grades/constants.py b/sys_path_hacks/lms/grades/constants.py index 83291923bb..234254e3cd 100644 --- a/sys_path_hacks/lms/grades/constants.py +++ b/sys_path_hacks/lms/grades/constants.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.constants instead of lms.djangoapps.grades.constants is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.constants') from lms.djangoapps.grades.constants import * diff --git a/sys_path_hacks/lms/grades/context.py b/sys_path_hacks/lms/grades/context.py index e714f8ee34..d0e303a666 100644 --- a/sys_path_hacks/lms/grades/context.py +++ b/sys_path_hacks/lms/grades/context.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.context instead of lms.djangoapps.grades.context is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.context') from lms.djangoapps.grades.context import * diff --git a/sys_path_hacks/lms/grades/course_data.py b/sys_path_hacks/lms/grades/course_data.py index f0b05a4129..3ccc410f84 100644 --- a/sys_path_hacks/lms/grades/course_data.py +++ b/sys_path_hacks/lms/grades/course_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.course_data instead of lms.djangoapps.grades.course_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.course_data') from lms.djangoapps.grades.course_data import * diff --git a/sys_path_hacks/lms/grades/course_grade.py b/sys_path_hacks/lms/grades/course_grade.py index aa6be9eb0e..036c0e1272 100644 --- a/sys_path_hacks/lms/grades/course_grade.py +++ b/sys_path_hacks/lms/grades/course_grade.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.course_grade instead of lms.djangoapps.grades.course_grade is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.course_grade') from lms.djangoapps.grades.course_grade import * diff --git a/sys_path_hacks/lms/grades/course_grade_factory.py b/sys_path_hacks/lms/grades/course_grade_factory.py index 8fc90d143f..b764e9a401 100644 --- a/sys_path_hacks/lms/grades/course_grade_factory.py +++ b/sys_path_hacks/lms/grades/course_grade_factory.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.course_grade_factory instead of lms.djangoapps.grades.course_grade_factory is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.course_grade_factory') from lms.djangoapps.grades.course_grade_factory import * diff --git a/sys_path_hacks/lms/grades/events.py b/sys_path_hacks/lms/grades/events.py index 51a2a85fd0..4286ac9bd2 100644 --- a/sys_path_hacks/lms/grades/events.py +++ b/sys_path_hacks/lms/grades/events.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.events instead of lms.djangoapps.grades.events is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.events') from lms.djangoapps.grades.events import * diff --git a/sys_path_hacks/lms/grades/exceptions.py b/sys_path_hacks/lms/grades/exceptions.py index 34712ecea5..e9eed408a8 100644 --- a/sys_path_hacks/lms/grades/exceptions.py +++ b/sys_path_hacks/lms/grades/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.exceptions instead of lms.djangoapps.grades.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.exceptions') from lms.djangoapps.grades.exceptions import * diff --git a/sys_path_hacks/lms/grades/grade_utils.py b/sys_path_hacks/lms/grades/grade_utils.py index a8801323c0..0f5b03b014 100644 --- a/sys_path_hacks/lms/grades/grade_utils.py +++ b/sys_path_hacks/lms/grades/grade_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.grade_utils instead of lms.djangoapps.grades.grade_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.grade_utils') from lms.djangoapps.grades.grade_utils import * diff --git a/sys_path_hacks/lms/grades/management/__init__.py b/sys_path_hacks/lms/grades/management/__init__.py index e56f8d8c94..9f0accb2c8 100644 --- a/sys_path_hacks/lms/grades/management/__init__.py +++ b/sys_path_hacks/lms/grades/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management instead of lms.djangoapps.grades.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management') from lms.djangoapps.grades.management import * diff --git a/sys_path_hacks/lms/grades/management/commands/__init__.py b/sys_path_hacks/lms/grades/management/commands/__init__.py index 750e5dabdc..ae1faf06a9 100644 --- a/sys_path_hacks/lms/grades/management/commands/__init__.py +++ b/sys_path_hacks/lms/grades/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management.commands instead of lms.djangoapps.grades.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management.commands') from lms.djangoapps.grades.management.commands import * diff --git a/sys_path_hacks/lms/grades/management/commands/compute_grades.py b/sys_path_hacks/lms/grades/management/commands/compute_grades.py index 193aaade1a..794dd06715 100644 --- a/sys_path_hacks/lms/grades/management/commands/compute_grades.py +++ b/sys_path_hacks/lms/grades/management/commands/compute_grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management.commands.compute_grades instead of lms.djangoapps.grades.management.commands.compute_grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management.commands.compute_grades') from lms.djangoapps.grades.management.commands.compute_grades import * diff --git a/sys_path_hacks/lms/grades/management/commands/recalculate_learner_grades.py b/sys_path_hacks/lms/grades/management/commands/recalculate_learner_grades.py index 330ac8629c..1640ec4feb 100644 --- a/sys_path_hacks/lms/grades/management/commands/recalculate_learner_grades.py +++ b/sys_path_hacks/lms/grades/management/commands/recalculate_learner_grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management.commands.recalculate_learner_grades instead of lms.djangoapps.grades.management.commands.recalculate_learner_grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management.commands.recalculate_learner_grades') from lms.djangoapps.grades.management.commands.recalculate_learner_grades import * diff --git a/sys_path_hacks/lms/grades/management/commands/recalculate_subsection_grades.py b/sys_path_hacks/lms/grades/management/commands/recalculate_subsection_grades.py index 1ab5a92e1f..4b24b2b93a 100644 --- a/sys_path_hacks/lms/grades/management/commands/recalculate_subsection_grades.py +++ b/sys_path_hacks/lms/grades/management/commands/recalculate_subsection_grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management.commands.recalculate_subsection_grades instead of lms.djangoapps.grades.management.commands.recalculate_subsection_grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management.commands.recalculate_subsection_grades') from lms.djangoapps.grades.management.commands.recalculate_subsection_grades import * diff --git a/sys_path_hacks/lms/grades/management/commands/tests/__init__.py b/sys_path_hacks/lms/grades/management/commands/tests/__init__.py index c97f3ec685..4cb9d55cc7 100644 --- a/sys_path_hacks/lms/grades/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/grades/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management.commands.tests instead of lms.djangoapps.grades.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management.commands.tests') from lms.djangoapps.grades.management.commands.tests import * diff --git a/sys_path_hacks/lms/grades/management/commands/tests/test_compute_grades.py b/sys_path_hacks/lms/grades/management/commands/tests/test_compute_grades.py index 8c4bdde149..9774ffde37 100644 --- a/sys_path_hacks/lms/grades/management/commands/tests/test_compute_grades.py +++ b/sys_path_hacks/lms/grades/management/commands/tests/test_compute_grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management.commands.tests.test_compute_grades instead of lms.djangoapps.grades.management.commands.tests.test_compute_grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management.commands.tests.test_compute_grades') from lms.djangoapps.grades.management.commands.tests.test_compute_grades import * diff --git a/sys_path_hacks/lms/grades/management/commands/tests/test_recalculate_learner_grades.py b/sys_path_hacks/lms/grades/management/commands/tests/test_recalculate_learner_grades.py index 44485fea69..b4bac9b690 100644 --- a/sys_path_hacks/lms/grades/management/commands/tests/test_recalculate_learner_grades.py +++ b/sys_path_hacks/lms/grades/management/commands/tests/test_recalculate_learner_grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management.commands.tests.test_recalculate_learner_grades instead of lms.djangoapps.grades.management.commands.tests.test_recalculate_learner_grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management.commands.tests.test_recalculate_learner_grades') from lms.djangoapps.grades.management.commands.tests.test_recalculate_learner_grades import * diff --git a/sys_path_hacks/lms/grades/management/commands/tests/test_recalculate_subsection_grades.py b/sys_path_hacks/lms/grades/management/commands/tests/test_recalculate_subsection_grades.py index 13564af15c..c35e9b1ea9 100644 --- a/sys_path_hacks/lms/grades/management/commands/tests/test_recalculate_subsection_grades.py +++ b/sys_path_hacks/lms/grades/management/commands/tests/test_recalculate_subsection_grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.management.commands.tests.test_recalculate_subsection_grades instead of lms.djangoapps.grades.management.commands.tests.test_recalculate_subsection_grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.management.commands.tests.test_recalculate_subsection_grades') from lms.djangoapps.grades.management.commands.tests.test_recalculate_subsection_grades import * diff --git a/sys_path_hacks/lms/grades/models.py b/sys_path_hacks/lms/grades/models.py index 7af56cd025..ba067e2bf2 100644 --- a/sys_path_hacks/lms/grades/models.py +++ b/sys_path_hacks/lms/grades/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.models instead of lms.djangoapps.grades.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.models') from lms.djangoapps.grades.models import * diff --git a/sys_path_hacks/lms/grades/models_api.py b/sys_path_hacks/lms/grades/models_api.py index 0784f736ff..25cf66e199 100644 --- a/sys_path_hacks/lms/grades/models_api.py +++ b/sys_path_hacks/lms/grades/models_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.models_api instead of lms.djangoapps.grades.models_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.models_api') from lms.djangoapps.grades.models_api import * diff --git a/sys_path_hacks/lms/grades/rest_api/__init__.py b/sys_path_hacks/lms/grades/rest_api/__init__.py index 95de78574a..e378981d57 100644 --- a/sys_path_hacks/lms/grades/rest_api/__init__.py +++ b/sys_path_hacks/lms/grades/rest_api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api instead of lms.djangoapps.grades.rest_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api') from lms.djangoapps.grades.rest_api import * diff --git a/sys_path_hacks/lms/grades/rest_api/serializers.py b/sys_path_hacks/lms/grades/rest_api/serializers.py index 4d678cd5f2..13f267ca93 100644 --- a/sys_path_hacks/lms/grades/rest_api/serializers.py +++ b/sys_path_hacks/lms/grades/rest_api/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.serializers instead of lms.djangoapps.grades.rest_api.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.serializers') from lms.djangoapps.grades.rest_api.serializers import * diff --git a/sys_path_hacks/lms/grades/rest_api/urls.py b/sys_path_hacks/lms/grades/rest_api/urls.py index a2c9ee3a55..638ced14fd 100644 --- a/sys_path_hacks/lms/grades/rest_api/urls.py +++ b/sys_path_hacks/lms/grades/rest_api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.urls instead of lms.djangoapps.grades.rest_api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.urls') from lms.djangoapps.grades.rest_api.urls import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/__init__.py b/sys_path_hacks/lms/grades/rest_api/v1/__init__.py index 06c9ee064a..7b7103e2e3 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/__init__.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1 instead of lms.djangoapps.grades.rest_api.v1 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1') from lms.djangoapps.grades.rest_api.v1 import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/gradebook_views.py b/sys_path_hacks/lms/grades/rest_api/v1/gradebook_views.py index b8e6834db2..8e0c8a34f7 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/gradebook_views.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/gradebook_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.gradebook_views instead of lms.djangoapps.grades.rest_api.v1.gradebook_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.gradebook_views') from lms.djangoapps.grades.rest_api.v1.gradebook_views import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/tests/__init__.py b/sys_path_hacks/lms/grades/rest_api/v1/tests/__init__.py index 1539207154..dee4dc0770 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/tests/__init__.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.tests instead of lms.djangoapps.grades.rest_api.v1.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.tests') from lms.djangoapps.grades.rest_api.v1.tests import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/tests/mixins.py b/sys_path_hacks/lms/grades/rest_api/v1/tests/mixins.py index e42d138939..7cff3324e4 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/tests/mixins.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/tests/mixins.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.tests.mixins instead of lms.djangoapps.grades.rest_api.v1.tests.mixins is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.tests.mixins') from lms.djangoapps.grades.rest_api.v1.tests.mixins import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/tests/test_gradebook_views.py b/sys_path_hacks/lms/grades/rest_api/v1/tests/test_gradebook_views.py index 7772c9190c..e66e6a8519 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/tests/test_gradebook_views.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/tests/test_gradebook_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.tests.test_gradebook_views instead of lms.djangoapps.grades.rest_api.v1.tests.test_gradebook_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.tests.test_gradebook_views') from lms.djangoapps.grades.rest_api.v1.tests.test_gradebook_views import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/tests/test_grading_policy_view.py b/sys_path_hacks/lms/grades/rest_api/v1/tests/test_grading_policy_view.py index e1c256c6db..e39dd22c9b 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/tests/test_grading_policy_view.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/tests/test_grading_policy_view.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.tests.test_grading_policy_view instead of lms.djangoapps.grades.rest_api.v1.tests.test_grading_policy_view is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.tests.test_grading_policy_view') from lms.djangoapps.grades.rest_api.v1.tests.test_grading_policy_view import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/tests/test_views.py b/sys_path_hacks/lms/grades/rest_api/v1/tests/test_views.py index 1917a7624d..f7f696b274 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/tests/test_views.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.tests.test_views instead of lms.djangoapps.grades.rest_api.v1.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.tests.test_views') from lms.djangoapps.grades.rest_api.v1.tests.test_views import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/urls.py b/sys_path_hacks/lms/grades/rest_api/v1/urls.py index e508136f02..551639ed4f 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/urls.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.urls instead of lms.djangoapps.grades.rest_api.v1.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.urls') from lms.djangoapps.grades.rest_api.v1.urls import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/utils.py b/sys_path_hacks/lms/grades/rest_api/v1/utils.py index b8f77d8454..9fbe9f8c42 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/utils.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.utils instead of lms.djangoapps.grades.rest_api.v1.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.utils') from lms.djangoapps.grades.rest_api.v1.utils import * diff --git a/sys_path_hacks/lms/grades/rest_api/v1/views.py b/sys_path_hacks/lms/grades/rest_api/v1/views.py index d63a0af320..5d2bfefca4 100644 --- a/sys_path_hacks/lms/grades/rest_api/v1/views.py +++ b/sys_path_hacks/lms/grades/rest_api/v1/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.rest_api.v1.views instead of lms.djangoapps.grades.rest_api.v1.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.rest_api.v1.views') from lms.djangoapps.grades.rest_api.v1.views import * diff --git a/sys_path_hacks/lms/grades/scores.py b/sys_path_hacks/lms/grades/scores.py index 8f6c7f4079..530315e6aa 100644 --- a/sys_path_hacks/lms/grades/scores.py +++ b/sys_path_hacks/lms/grades/scores.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.scores instead of lms.djangoapps.grades.scores is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.scores') from lms.djangoapps.grades.scores import * diff --git a/sys_path_hacks/lms/grades/services.py b/sys_path_hacks/lms/grades/services.py index 588ba7d4cc..a5df7bf4d9 100644 --- a/sys_path_hacks/lms/grades/services.py +++ b/sys_path_hacks/lms/grades/services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.services instead of lms.djangoapps.grades.services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.services') from lms.djangoapps.grades.services import * diff --git a/sys_path_hacks/lms/grades/settings/__init__.py b/sys_path_hacks/lms/grades/settings/__init__.py index 4cb94266dd..cea29aea9a 100644 --- a/sys_path_hacks/lms/grades/settings/__init__.py +++ b/sys_path_hacks/lms/grades/settings/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.settings instead of lms.djangoapps.grades.settings is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.settings') from lms.djangoapps.grades.settings import * diff --git a/sys_path_hacks/lms/grades/settings/common.py b/sys_path_hacks/lms/grades/settings/common.py index 7054d1f948..c44de02be7 100644 --- a/sys_path_hacks/lms/grades/settings/common.py +++ b/sys_path_hacks/lms/grades/settings/common.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.settings.common instead of lms.djangoapps.grades.settings.common is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.settings.common') from lms.djangoapps.grades.settings.common import * diff --git a/sys_path_hacks/lms/grades/settings/production.py b/sys_path_hacks/lms/grades/settings/production.py index 88b2236ab7..e35468edc4 100644 --- a/sys_path_hacks/lms/grades/settings/production.py +++ b/sys_path_hacks/lms/grades/settings/production.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.settings.production instead of lms.djangoapps.grades.settings.production is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.settings.production') from lms.djangoapps.grades.settings.production import * diff --git a/sys_path_hacks/lms/grades/settings/test.py b/sys_path_hacks/lms/grades/settings/test.py index a563d201b1..c2ae5bbf79 100644 --- a/sys_path_hacks/lms/grades/settings/test.py +++ b/sys_path_hacks/lms/grades/settings/test.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.settings.test instead of lms.djangoapps.grades.settings.test is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.settings.test') from lms.djangoapps.grades.settings.test import * diff --git a/sys_path_hacks/lms/grades/signals/__init__.py b/sys_path_hacks/lms/grades/signals/__init__.py index 111f3cbff4..41c4425309 100644 --- a/sys_path_hacks/lms/grades/signals/__init__.py +++ b/sys_path_hacks/lms/grades/signals/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.signals instead of lms.djangoapps.grades.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.signals') from lms.djangoapps.grades.signals import * diff --git a/sys_path_hacks/lms/grades/signals/handlers.py b/sys_path_hacks/lms/grades/signals/handlers.py index 0ef23fecd0..7277ddb2f3 100644 --- a/sys_path_hacks/lms/grades/signals/handlers.py +++ b/sys_path_hacks/lms/grades/signals/handlers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.signals.handlers instead of lms.djangoapps.grades.signals.handlers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.signals.handlers') from lms.djangoapps.grades.signals.handlers import * diff --git a/sys_path_hacks/lms/grades/signals/signals.py b/sys_path_hacks/lms/grades/signals/signals.py index 27660e03fa..5f9f3c57e8 100644 --- a/sys_path_hacks/lms/grades/signals/signals.py +++ b/sys_path_hacks/lms/grades/signals/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.signals.signals instead of lms.djangoapps.grades.signals.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.signals.signals') from lms.djangoapps.grades.signals.signals import * diff --git a/sys_path_hacks/lms/grades/subsection_grade.py b/sys_path_hacks/lms/grades/subsection_grade.py index 1ea880ab84..3e33b76f80 100644 --- a/sys_path_hacks/lms/grades/subsection_grade.py +++ b/sys_path_hacks/lms/grades/subsection_grade.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.subsection_grade instead of lms.djangoapps.grades.subsection_grade is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.subsection_grade') from lms.djangoapps.grades.subsection_grade import * diff --git a/sys_path_hacks/lms/grades/subsection_grade_factory.py b/sys_path_hacks/lms/grades/subsection_grade_factory.py index 48b6a47a78..c6100623a3 100644 --- a/sys_path_hacks/lms/grades/subsection_grade_factory.py +++ b/sys_path_hacks/lms/grades/subsection_grade_factory.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.subsection_grade_factory instead of lms.djangoapps.grades.subsection_grade_factory is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.subsection_grade_factory') from lms.djangoapps.grades.subsection_grade_factory import * diff --git a/sys_path_hacks/lms/grades/tasks.py b/sys_path_hacks/lms/grades/tasks.py index b7134a306e..c9df26cfb3 100644 --- a/sys_path_hacks/lms/grades/tasks.py +++ b/sys_path_hacks/lms/grades/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tasks instead of lms.djangoapps.grades.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tasks') from lms.djangoapps.grades.tasks import * diff --git a/sys_path_hacks/lms/grades/tests/__init__.py b/sys_path_hacks/lms/grades/tests/__init__.py index 8889459eef..768ac462e5 100644 --- a/sys_path_hacks/lms/grades/tests/__init__.py +++ b/sys_path_hacks/lms/grades/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests instead of lms.djangoapps.grades.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests') from lms.djangoapps.grades.tests import * diff --git a/sys_path_hacks/lms/grades/tests/base.py b/sys_path_hacks/lms/grades/tests/base.py index e3bc50e820..75b9737e5d 100644 --- a/sys_path_hacks/lms/grades/tests/base.py +++ b/sys_path_hacks/lms/grades/tests/base.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.base instead of lms.djangoapps.grades.tests.base is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.base') from lms.djangoapps.grades.tests.base import * diff --git a/sys_path_hacks/lms/grades/tests/integration/__init__.py b/sys_path_hacks/lms/grades/tests/integration/__init__.py index b3c02b0a15..d1d5520f49 100644 --- a/sys_path_hacks/lms/grades/tests/integration/__init__.py +++ b/sys_path_hacks/lms/grades/tests/integration/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.integration instead of lms.djangoapps.grades.tests.integration is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.integration') from lms.djangoapps.grades.tests.integration import * diff --git a/sys_path_hacks/lms/grades/tests/integration/test_access.py b/sys_path_hacks/lms/grades/tests/integration/test_access.py index 4b03375071..e947c0383d 100644 --- a/sys_path_hacks/lms/grades/tests/integration/test_access.py +++ b/sys_path_hacks/lms/grades/tests/integration/test_access.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.integration.test_access instead of lms.djangoapps.grades.tests.integration.test_access is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.integration.test_access') from lms.djangoapps.grades.tests.integration.test_access import * diff --git a/sys_path_hacks/lms/grades/tests/integration/test_events.py b/sys_path_hacks/lms/grades/tests/integration/test_events.py index 10c09a55a8..e1c5e96d53 100644 --- a/sys_path_hacks/lms/grades/tests/integration/test_events.py +++ b/sys_path_hacks/lms/grades/tests/integration/test_events.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.integration.test_events instead of lms.djangoapps.grades.tests.integration.test_events is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.integration.test_events') from lms.djangoapps.grades.tests.integration.test_events import * diff --git a/sys_path_hacks/lms/grades/tests/integration/test_problems.py b/sys_path_hacks/lms/grades/tests/integration/test_problems.py index 84c52e7552..049629e530 100644 --- a/sys_path_hacks/lms/grades/tests/integration/test_problems.py +++ b/sys_path_hacks/lms/grades/tests/integration/test_problems.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.integration.test_problems instead of lms.djangoapps.grades.tests.integration.test_problems is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.integration.test_problems') from lms.djangoapps.grades.tests.integration.test_problems import * diff --git a/sys_path_hacks/lms/grades/tests/test_api.py b/sys_path_hacks/lms/grades/tests/test_api.py index 4dc99bf5b9..3c58c25ac5 100644 --- a/sys_path_hacks/lms/grades/tests/test_api.py +++ b/sys_path_hacks/lms/grades/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_api instead of lms.djangoapps.grades.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_api') from lms.djangoapps.grades.tests.test_api import * diff --git a/sys_path_hacks/lms/grades/tests/test_course_data.py b/sys_path_hacks/lms/grades/tests/test_course_data.py index 1a1f984ce4..eabc9c88f1 100644 --- a/sys_path_hacks/lms/grades/tests/test_course_data.py +++ b/sys_path_hacks/lms/grades/tests/test_course_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_course_data instead of lms.djangoapps.grades.tests.test_course_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_course_data') from lms.djangoapps.grades.tests.test_course_data import * diff --git a/sys_path_hacks/lms/grades/tests/test_course_grade.py b/sys_path_hacks/lms/grades/tests/test_course_grade.py index 8b590bd6e6..7c0fc5dafe 100644 --- a/sys_path_hacks/lms/grades/tests/test_course_grade.py +++ b/sys_path_hacks/lms/grades/tests/test_course_grade.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_course_grade instead of lms.djangoapps.grades.tests.test_course_grade is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_course_grade') from lms.djangoapps.grades.tests.test_course_grade import * diff --git a/sys_path_hacks/lms/grades/tests/test_course_grade_factory.py b/sys_path_hacks/lms/grades/tests/test_course_grade_factory.py index fc48c961ea..3249890ca1 100644 --- a/sys_path_hacks/lms/grades/tests/test_course_grade_factory.py +++ b/sys_path_hacks/lms/grades/tests/test_course_grade_factory.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_course_grade_factory instead of lms.djangoapps.grades.tests.test_course_grade_factory is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_course_grade_factory') from lms.djangoapps.grades.tests.test_course_grade_factory import * diff --git a/sys_path_hacks/lms/grades/tests/test_models.py b/sys_path_hacks/lms/grades/tests/test_models.py index edad5fc895..4f173c3811 100644 --- a/sys_path_hacks/lms/grades/tests/test_models.py +++ b/sys_path_hacks/lms/grades/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_models instead of lms.djangoapps.grades.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_models') from lms.djangoapps.grades.tests.test_models import * diff --git a/sys_path_hacks/lms/grades/tests/test_scores.py b/sys_path_hacks/lms/grades/tests/test_scores.py index d9e8d8ef2e..32a33f1a23 100644 --- a/sys_path_hacks/lms/grades/tests/test_scores.py +++ b/sys_path_hacks/lms/grades/tests/test_scores.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_scores instead of lms.djangoapps.grades.tests.test_scores is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_scores') from lms.djangoapps.grades.tests.test_scores import * diff --git a/sys_path_hacks/lms/grades/tests/test_services.py b/sys_path_hacks/lms/grades/tests/test_services.py index 58de8e5c68..2adc89fd92 100644 --- a/sys_path_hacks/lms/grades/tests/test_services.py +++ b/sys_path_hacks/lms/grades/tests/test_services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_services instead of lms.djangoapps.grades.tests.test_services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_services') from lms.djangoapps.grades.tests.test_services import * diff --git a/sys_path_hacks/lms/grades/tests/test_signals.py b/sys_path_hacks/lms/grades/tests/test_signals.py index d8fb2f8a93..91ee3efd1c 100644 --- a/sys_path_hacks/lms/grades/tests/test_signals.py +++ b/sys_path_hacks/lms/grades/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_signals instead of lms.djangoapps.grades.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_signals') from lms.djangoapps.grades.tests.test_signals import * diff --git a/sys_path_hacks/lms/grades/tests/test_subsection_grade.py b/sys_path_hacks/lms/grades/tests/test_subsection_grade.py index 11f5d92de8..87dcb37295 100644 --- a/sys_path_hacks/lms/grades/tests/test_subsection_grade.py +++ b/sys_path_hacks/lms/grades/tests/test_subsection_grade.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_subsection_grade instead of lms.djangoapps.grades.tests.test_subsection_grade is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_subsection_grade') from lms.djangoapps.grades.tests.test_subsection_grade import * diff --git a/sys_path_hacks/lms/grades/tests/test_subsection_grade_factory.py b/sys_path_hacks/lms/grades/tests/test_subsection_grade_factory.py index 5fa2228581..277d9ee90a 100644 --- a/sys_path_hacks/lms/grades/tests/test_subsection_grade_factory.py +++ b/sys_path_hacks/lms/grades/tests/test_subsection_grade_factory.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_subsection_grade_factory instead of lms.djangoapps.grades.tests.test_subsection_grade_factory is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_subsection_grade_factory') from lms.djangoapps.grades.tests.test_subsection_grade_factory import * diff --git a/sys_path_hacks/lms/grades/tests/test_tasks.py b/sys_path_hacks/lms/grades/tests/test_tasks.py index ea019739da..5f575d615e 100644 --- a/sys_path_hacks/lms/grades/tests/test_tasks.py +++ b/sys_path_hacks/lms/grades/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_tasks instead of lms.djangoapps.grades.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_tasks') from lms.djangoapps.grades.tests.test_tasks import * diff --git a/sys_path_hacks/lms/grades/tests/test_transformer.py b/sys_path_hacks/lms/grades/tests/test_transformer.py index 877e5327b5..8dd043ef14 100644 --- a/sys_path_hacks/lms/grades/tests/test_transformer.py +++ b/sys_path_hacks/lms/grades/tests/test_transformer.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.test_transformer instead of lms.djangoapps.grades.tests.test_transformer is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.test_transformer') from lms.djangoapps.grades.tests.test_transformer import * diff --git a/sys_path_hacks/lms/grades/tests/utils.py b/sys_path_hacks/lms/grades/tests/utils.py index 868ae58712..8effc45661 100644 --- a/sys_path_hacks/lms/grades/tests/utils.py +++ b/sys_path_hacks/lms/grades/tests/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.tests.utils instead of lms.djangoapps.grades.tests.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.tests.utils') from lms.djangoapps.grades.tests.utils import * diff --git a/sys_path_hacks/lms/grades/transformer.py b/sys_path_hacks/lms/grades/transformer.py index f1c8445b97..5b8b220fb5 100644 --- a/sys_path_hacks/lms/grades/transformer.py +++ b/sys_path_hacks/lms/grades/transformer.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.transformer instead of lms.djangoapps.grades.transformer is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.transformer') from lms.djangoapps.grades.transformer import * diff --git a/sys_path_hacks/lms/grades/util_services.py b/sys_path_hacks/lms/grades/util_services.py index 639962607f..2d7991aef7 100644 --- a/sys_path_hacks/lms/grades/util_services.py +++ b/sys_path_hacks/lms/grades/util_services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing grades.util_services instead of lms.djangoapps.grades.util_services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'grades.util_services') from lms.djangoapps.grades.util_services import * diff --git a/sys_path_hacks/lms/instructor/__init__.py b/sys_path_hacks/lms/instructor/__init__.py index 7ac3dd5ff7..8ce33486b5 100644 --- a/sys_path_hacks/lms/instructor/__init__.py +++ b/sys_path_hacks/lms/instructor/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor instead of lms.djangoapps.instructor is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor') from lms.djangoapps.instructor import * diff --git a/sys_path_hacks/lms/instructor/access.py b/sys_path_hacks/lms/instructor/access.py index d5259d4a69..58795fd008 100644 --- a/sys_path_hacks/lms/instructor/access.py +++ b/sys_path_hacks/lms/instructor/access.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.access instead of lms.djangoapps.instructor.access is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.access') from lms.djangoapps.instructor.access import * diff --git a/sys_path_hacks/lms/instructor/apps.py b/sys_path_hacks/lms/instructor/apps.py index 1ffcb95e35..71252f1b48 100644 --- a/sys_path_hacks/lms/instructor/apps.py +++ b/sys_path_hacks/lms/instructor/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.apps instead of lms.djangoapps.instructor.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.apps') from lms.djangoapps.instructor.apps import * diff --git a/sys_path_hacks/lms/instructor/enrollment.py b/sys_path_hacks/lms/instructor/enrollment.py index 8817373509..8286bfd4ce 100644 --- a/sys_path_hacks/lms/instructor/enrollment.py +++ b/sys_path_hacks/lms/instructor/enrollment.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.enrollment instead of lms.djangoapps.instructor.enrollment is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.enrollment') from lms.djangoapps.instructor.enrollment import * diff --git a/sys_path_hacks/lms/instructor/message_types.py b/sys_path_hacks/lms/instructor/message_types.py index 25d41e2e6c..0acc87de8e 100644 --- a/sys_path_hacks/lms/instructor/message_types.py +++ b/sys_path_hacks/lms/instructor/message_types.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.message_types instead of lms.djangoapps.instructor.message_types is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.message_types') from lms.djangoapps.instructor.message_types import * diff --git a/sys_path_hacks/lms/instructor/permissions.py b/sys_path_hacks/lms/instructor/permissions.py index 9443635486..31b2b1afd3 100644 --- a/sys_path_hacks/lms/instructor/permissions.py +++ b/sys_path_hacks/lms/instructor/permissions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.permissions instead of lms.djangoapps.instructor.permissions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.permissions') from lms.djangoapps.instructor.permissions import * diff --git a/sys_path_hacks/lms/instructor/services.py b/sys_path_hacks/lms/instructor/services.py index 9339547f7c..7a0e852249 100644 --- a/sys_path_hacks/lms/instructor/services.py +++ b/sys_path_hacks/lms/instructor/services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.services instead of lms.djangoapps.instructor.services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.services') from lms.djangoapps.instructor.services import * diff --git a/sys_path_hacks/lms/instructor/settings/__init__.py b/sys_path_hacks/lms/instructor/settings/__init__.py index 3d46e67010..89d52147f3 100644 --- a/sys_path_hacks/lms/instructor/settings/__init__.py +++ b/sys_path_hacks/lms/instructor/settings/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.settings instead of lms.djangoapps.instructor.settings is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.settings') from lms.djangoapps.instructor.settings import * diff --git a/sys_path_hacks/lms/instructor/settings/common.py b/sys_path_hacks/lms/instructor/settings/common.py index ed47c3bdc1..81beef36de 100644 --- a/sys_path_hacks/lms/instructor/settings/common.py +++ b/sys_path_hacks/lms/instructor/settings/common.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.settings.common instead of lms.djangoapps.instructor.settings.common is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.settings.common') from lms.djangoapps.instructor.settings.common import * diff --git a/sys_path_hacks/lms/instructor/settings/devstack.py b/sys_path_hacks/lms/instructor/settings/devstack.py index f503771b83..19abc2f88f 100644 --- a/sys_path_hacks/lms/instructor/settings/devstack.py +++ b/sys_path_hacks/lms/instructor/settings/devstack.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.settings.devstack instead of lms.djangoapps.instructor.settings.devstack is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.settings.devstack') from lms.djangoapps.instructor.settings.devstack import * diff --git a/sys_path_hacks/lms/instructor/settings/production.py b/sys_path_hacks/lms/instructor/settings/production.py index da12874c15..823b4b3122 100644 --- a/sys_path_hacks/lms/instructor/settings/production.py +++ b/sys_path_hacks/lms/instructor/settings/production.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.settings.production instead of lms.djangoapps.instructor.settings.production is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.settings.production') from lms.djangoapps.instructor.settings.production import * diff --git a/sys_path_hacks/lms/instructor/settings/test.py b/sys_path_hacks/lms/instructor/settings/test.py index 81834f7583..976c512755 100644 --- a/sys_path_hacks/lms/instructor/settings/test.py +++ b/sys_path_hacks/lms/instructor/settings/test.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.settings.test instead of lms.djangoapps.instructor.settings.test is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.settings.test') from lms.djangoapps.instructor.settings.test import * diff --git a/sys_path_hacks/lms/instructor/tests/__init__.py b/sys_path_hacks/lms/instructor/tests/__init__.py index ba74aa2f39..374c97eb9b 100644 --- a/sys_path_hacks/lms/instructor/tests/__init__.py +++ b/sys_path_hacks/lms/instructor/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests instead of lms.djangoapps.instructor.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests') from lms.djangoapps.instructor.tests import * diff --git a/sys_path_hacks/lms/instructor/tests/test_access.py b/sys_path_hacks/lms/instructor/tests/test_access.py index d33fa7e691..e1b36bd5e2 100644 --- a/sys_path_hacks/lms/instructor/tests/test_access.py +++ b/sys_path_hacks/lms/instructor/tests/test_access.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_access instead of lms.djangoapps.instructor.tests.test_access is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_access') from lms.djangoapps.instructor.tests.test_access import * diff --git a/sys_path_hacks/lms/instructor/tests/test_api.py b/sys_path_hacks/lms/instructor/tests/test_api.py index f697bcdacc..7660246816 100644 --- a/sys_path_hacks/lms/instructor/tests/test_api.py +++ b/sys_path_hacks/lms/instructor/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_api instead of lms.djangoapps.instructor.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_api') from lms.djangoapps.instructor.tests.test_api import * diff --git a/sys_path_hacks/lms/instructor/tests/test_api_email_localization.py b/sys_path_hacks/lms/instructor/tests/test_api_email_localization.py index 6f2b0c3f54..383a6ca080 100644 --- a/sys_path_hacks/lms/instructor/tests/test_api_email_localization.py +++ b/sys_path_hacks/lms/instructor/tests/test_api_email_localization.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_api_email_localization instead of lms.djangoapps.instructor.tests.test_api_email_localization is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_api_email_localization') from lms.djangoapps.instructor.tests.test_api_email_localization import * diff --git a/sys_path_hacks/lms/instructor/tests/test_certificates.py b/sys_path_hacks/lms/instructor/tests/test_certificates.py index 0c8d02dbca..5b19550c92 100644 --- a/sys_path_hacks/lms/instructor/tests/test_certificates.py +++ b/sys_path_hacks/lms/instructor/tests/test_certificates.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_certificates instead of lms.djangoapps.instructor.tests.test_certificates is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_certificates') from lms.djangoapps.instructor.tests.test_certificates import * diff --git a/sys_path_hacks/lms/instructor/tests/test_email.py b/sys_path_hacks/lms/instructor/tests/test_email.py index d36cba10ab..808be91000 100644 --- a/sys_path_hacks/lms/instructor/tests/test_email.py +++ b/sys_path_hacks/lms/instructor/tests/test_email.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_email instead of lms.djangoapps.instructor.tests.test_email is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_email') from lms.djangoapps.instructor.tests.test_email import * diff --git a/sys_path_hacks/lms/instructor/tests/test_enrollment.py b/sys_path_hacks/lms/instructor/tests/test_enrollment.py index ec96aee06d..1bfacc6849 100644 --- a/sys_path_hacks/lms/instructor/tests/test_enrollment.py +++ b/sys_path_hacks/lms/instructor/tests/test_enrollment.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_enrollment instead of lms.djangoapps.instructor.tests.test_enrollment is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_enrollment') from lms.djangoapps.instructor.tests.test_enrollment import * diff --git a/sys_path_hacks/lms/instructor/tests/test_proctoring.py b/sys_path_hacks/lms/instructor/tests/test_proctoring.py index 0c408c958c..ac92612ebe 100644 --- a/sys_path_hacks/lms/instructor/tests/test_proctoring.py +++ b/sys_path_hacks/lms/instructor/tests/test_proctoring.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_proctoring instead of lms.djangoapps.instructor.tests.test_proctoring is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_proctoring') from lms.djangoapps.instructor.tests.test_proctoring import * diff --git a/sys_path_hacks/lms/instructor/tests/test_services.py b/sys_path_hacks/lms/instructor/tests/test_services.py index 8667f7da90..4c141c80b5 100644 --- a/sys_path_hacks/lms/instructor/tests/test_services.py +++ b/sys_path_hacks/lms/instructor/tests/test_services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_services instead of lms.djangoapps.instructor.tests.test_services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_services') from lms.djangoapps.instructor.tests.test_services import * diff --git a/sys_path_hacks/lms/instructor/tests/test_spoc_gradebook.py b/sys_path_hacks/lms/instructor/tests/test_spoc_gradebook.py index fdbae53a24..46bb32cfc1 100644 --- a/sys_path_hacks/lms/instructor/tests/test_spoc_gradebook.py +++ b/sys_path_hacks/lms/instructor/tests/test_spoc_gradebook.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_spoc_gradebook instead of lms.djangoapps.instructor.tests.test_spoc_gradebook is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_spoc_gradebook') from lms.djangoapps.instructor.tests.test_spoc_gradebook import * diff --git a/sys_path_hacks/lms/instructor/tests/test_tools.py b/sys_path_hacks/lms/instructor/tests/test_tools.py index f8f42f49c4..954f1691e6 100644 --- a/sys_path_hacks/lms/instructor/tests/test_tools.py +++ b/sys_path_hacks/lms/instructor/tests/test_tools.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.test_tools instead of lms.djangoapps.instructor.tests.test_tools is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.test_tools') from lms.djangoapps.instructor.tests.test_tools import * diff --git a/sys_path_hacks/lms/instructor/tests/utils.py b/sys_path_hacks/lms/instructor/tests/utils.py index 0ea82afb7f..9395a2b3ba 100644 --- a/sys_path_hacks/lms/instructor/tests/utils.py +++ b/sys_path_hacks/lms/instructor/tests/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.utils instead of lms.djangoapps.instructor.tests.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.utils') from lms.djangoapps.instructor.tests.utils import * diff --git a/sys_path_hacks/lms/instructor/tests/views/__init__.py b/sys_path_hacks/lms/instructor/tests/views/__init__.py index 57947c0382..f450dd4fb9 100644 --- a/sys_path_hacks/lms/instructor/tests/views/__init__.py +++ b/sys_path_hacks/lms/instructor/tests/views/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.views instead of lms.djangoapps.instructor.tests.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.views') from lms.djangoapps.instructor.tests.views import * diff --git a/sys_path_hacks/lms/instructor/tests/views/test_instructor_dashboard.py b/sys_path_hacks/lms/instructor/tests/views/test_instructor_dashboard.py index 9dcb7467f6..f5cd690493 100644 --- a/sys_path_hacks/lms/instructor/tests/views/test_instructor_dashboard.py +++ b/sys_path_hacks/lms/instructor/tests/views/test_instructor_dashboard.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.tests.views.test_instructor_dashboard instead of lms.djangoapps.instructor.tests.views.test_instructor_dashboard is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.tests.views.test_instructor_dashboard') from lms.djangoapps.instructor.tests.views.test_instructor_dashboard import * diff --git a/sys_path_hacks/lms/instructor/toggles.py b/sys_path_hacks/lms/instructor/toggles.py new file mode 100644 index 0000000000..e724952a90 --- /dev/null +++ b/sys_path_hacks/lms/instructor/toggles.py @@ -0,0 +1,5 @@ +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.toggles') + +from lms.djangoapps.instructor.toggles import * diff --git a/sys_path_hacks/lms/instructor/utils.py b/sys_path_hacks/lms/instructor/utils.py index 4180768425..8868cb2424 100644 --- a/sys_path_hacks/lms/instructor/utils.py +++ b/sys_path_hacks/lms/instructor/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.utils instead of lms.djangoapps.instructor.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.utils') from lms.djangoapps.instructor.utils import * diff --git a/sys_path_hacks/lms/instructor/views/__init__.py b/sys_path_hacks/lms/instructor/views/__init__.py index 28c747c913..921aa4a333 100644 --- a/sys_path_hacks/lms/instructor/views/__init__.py +++ b/sys_path_hacks/lms/instructor/views/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.views instead of lms.djangoapps.instructor.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.views') from lms.djangoapps.instructor.views import * diff --git a/sys_path_hacks/lms/instructor/views/api.py b/sys_path_hacks/lms/instructor/views/api.py index 3f1065a235..52dfdf7f6e 100644 --- a/sys_path_hacks/lms/instructor/views/api.py +++ b/sys_path_hacks/lms/instructor/views/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.views.api instead of lms.djangoapps.instructor.views.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.views.api') from lms.djangoapps.instructor.views.api import * diff --git a/sys_path_hacks/lms/instructor/views/api_urls.py b/sys_path_hacks/lms/instructor/views/api_urls.py index 5471a51094..7c0cab6b96 100644 --- a/sys_path_hacks/lms/instructor/views/api_urls.py +++ b/sys_path_hacks/lms/instructor/views/api_urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.views.api_urls instead of lms.djangoapps.instructor.views.api_urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.views.api_urls') from lms.djangoapps.instructor.views.api_urls import * diff --git a/sys_path_hacks/lms/instructor/views/gradebook_api.py b/sys_path_hacks/lms/instructor/views/gradebook_api.py index 225a71a732..dcabe830b8 100644 --- a/sys_path_hacks/lms/instructor/views/gradebook_api.py +++ b/sys_path_hacks/lms/instructor/views/gradebook_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.views.gradebook_api instead of lms.djangoapps.instructor.views.gradebook_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.views.gradebook_api') from lms.djangoapps.instructor.views.gradebook_api import * diff --git a/sys_path_hacks/lms/instructor/views/instructor_dashboard.py b/sys_path_hacks/lms/instructor/views/instructor_dashboard.py index 1bdb810a0c..86ef8f2291 100644 --- a/sys_path_hacks/lms/instructor/views/instructor_dashboard.py +++ b/sys_path_hacks/lms/instructor/views/instructor_dashboard.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.views.instructor_dashboard instead of lms.djangoapps.instructor.views.instructor_dashboard is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.views.instructor_dashboard') from lms.djangoapps.instructor.views.instructor_dashboard import * diff --git a/sys_path_hacks/lms/instructor/views/instructor_task_helpers.py b/sys_path_hacks/lms/instructor/views/instructor_task_helpers.py index ba176dbaef..2044632cd0 100644 --- a/sys_path_hacks/lms/instructor/views/instructor_task_helpers.py +++ b/sys_path_hacks/lms/instructor/views/instructor_task_helpers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.views.instructor_task_helpers instead of lms.djangoapps.instructor.views.instructor_task_helpers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.views.instructor_task_helpers') from lms.djangoapps.instructor.views.instructor_task_helpers import * diff --git a/sys_path_hacks/lms/instructor/views/tools.py b/sys_path_hacks/lms/instructor/views/tools.py index 7dbe8e45c8..2e544b0170 100644 --- a/sys_path_hacks/lms/instructor/views/tools.py +++ b/sys_path_hacks/lms/instructor/views/tools.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor.views.tools instead of lms.djangoapps.instructor.views.tools is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor.views.tools') from lms.djangoapps.instructor.views.tools import * diff --git a/sys_path_hacks/lms/instructor_analytics/__init__.py b/sys_path_hacks/lms/instructor_analytics/__init__.py index 84be5c1ee4..f3df1a3153 100644 --- a/sys_path_hacks/lms/instructor_analytics/__init__.py +++ b/sys_path_hacks/lms/instructor_analytics/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics instead of lms.djangoapps.instructor_analytics is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics') from lms.djangoapps.instructor_analytics import * diff --git a/sys_path_hacks/lms/instructor_analytics/basic.py b/sys_path_hacks/lms/instructor_analytics/basic.py index 147394a7d1..10e89aeb2f 100644 --- a/sys_path_hacks/lms/instructor_analytics/basic.py +++ b/sys_path_hacks/lms/instructor_analytics/basic.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.basic instead of lms.djangoapps.instructor_analytics.basic is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.basic') from lms.djangoapps.instructor_analytics.basic import * diff --git a/sys_path_hacks/lms/instructor_analytics/csvs.py b/sys_path_hacks/lms/instructor_analytics/csvs.py index b7d4d873fc..f8f13fdf17 100644 --- a/sys_path_hacks/lms/instructor_analytics/csvs.py +++ b/sys_path_hacks/lms/instructor_analytics/csvs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.csvs instead of lms.djangoapps.instructor_analytics.csvs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.csvs') from lms.djangoapps.instructor_analytics.csvs import * diff --git a/sys_path_hacks/lms/instructor_analytics/distributions.py b/sys_path_hacks/lms/instructor_analytics/distributions.py index da411afe5d..69d74dabbf 100644 --- a/sys_path_hacks/lms/instructor_analytics/distributions.py +++ b/sys_path_hacks/lms/instructor_analytics/distributions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.distributions instead of lms.djangoapps.instructor_analytics.distributions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.distributions') from lms.djangoapps.instructor_analytics.distributions import * diff --git a/sys_path_hacks/lms/instructor_analytics/management/__init__.py b/sys_path_hacks/lms/instructor_analytics/management/__init__.py index 6c49c5ff5f..830158b600 100644 --- a/sys_path_hacks/lms/instructor_analytics/management/__init__.py +++ b/sys_path_hacks/lms/instructor_analytics/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.management instead of lms.djangoapps.instructor_analytics.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.management') from lms.djangoapps.instructor_analytics.management import * diff --git a/sys_path_hacks/lms/instructor_analytics/management/commands/__init__.py b/sys_path_hacks/lms/instructor_analytics/management/commands/__init__.py index 187695e35a..7bbd6d30d0 100644 --- a/sys_path_hacks/lms/instructor_analytics/management/commands/__init__.py +++ b/sys_path_hacks/lms/instructor_analytics/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.management.commands instead of lms.djangoapps.instructor_analytics.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.management.commands') from lms.djangoapps.instructor_analytics.management.commands import * diff --git a/sys_path_hacks/lms/instructor_analytics/tests/__init__.py b/sys_path_hacks/lms/instructor_analytics/tests/__init__.py index 66a88ddf37..0748785d7d 100644 --- a/sys_path_hacks/lms/instructor_analytics/tests/__init__.py +++ b/sys_path_hacks/lms/instructor_analytics/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.tests instead of lms.djangoapps.instructor_analytics.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.tests') from lms.djangoapps.instructor_analytics.tests import * diff --git a/sys_path_hacks/lms/instructor_analytics/tests/test_basic.py b/sys_path_hacks/lms/instructor_analytics/tests/test_basic.py index adeaf236dc..f93e37599b 100644 --- a/sys_path_hacks/lms/instructor_analytics/tests/test_basic.py +++ b/sys_path_hacks/lms/instructor_analytics/tests/test_basic.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.tests.test_basic instead of lms.djangoapps.instructor_analytics.tests.test_basic is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.tests.test_basic') from lms.djangoapps.instructor_analytics.tests.test_basic import * diff --git a/sys_path_hacks/lms/instructor_analytics/tests/test_csvs.py b/sys_path_hacks/lms/instructor_analytics/tests/test_csvs.py index cc190823ea..33c63c14ac 100644 --- a/sys_path_hacks/lms/instructor_analytics/tests/test_csvs.py +++ b/sys_path_hacks/lms/instructor_analytics/tests/test_csvs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.tests.test_csvs instead of lms.djangoapps.instructor_analytics.tests.test_csvs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.tests.test_csvs') from lms.djangoapps.instructor_analytics.tests.test_csvs import * diff --git a/sys_path_hacks/lms/instructor_analytics/tests/test_distributions.py b/sys_path_hacks/lms/instructor_analytics/tests/test_distributions.py index 086def1ff0..0211827eb8 100644 --- a/sys_path_hacks/lms/instructor_analytics/tests/test_distributions.py +++ b/sys_path_hacks/lms/instructor_analytics/tests/test_distributions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_analytics.tests.test_distributions instead of lms.djangoapps.instructor_analytics.tests.test_distributions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_analytics.tests.test_distributions') from lms.djangoapps.instructor_analytics.tests.test_distributions import * diff --git a/sys_path_hacks/lms/instructor_task/__init__.py b/sys_path_hacks/lms/instructor_task/__init__.py index 1b982eb200..da531533c6 100644 --- a/sys_path_hacks/lms/instructor_task/__init__.py +++ b/sys_path_hacks/lms/instructor_task/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task instead of lms.djangoapps.instructor_task is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task') from lms.djangoapps.instructor_task import * diff --git a/sys_path_hacks/lms/instructor_task/admin.py b/sys_path_hacks/lms/instructor_task/admin.py index 721cce6e8a..40bfa57f98 100644 --- a/sys_path_hacks/lms/instructor_task/admin.py +++ b/sys_path_hacks/lms/instructor_task/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.admin instead of lms.djangoapps.instructor_task.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.admin') from lms.djangoapps.instructor_task.admin import * diff --git a/sys_path_hacks/lms/instructor_task/api.py b/sys_path_hacks/lms/instructor_task/api.py index ed93ca7e68..c6f6851582 100644 --- a/sys_path_hacks/lms/instructor_task/api.py +++ b/sys_path_hacks/lms/instructor_task/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.api instead of lms.djangoapps.instructor_task.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.api') from lms.djangoapps.instructor_task.api import * diff --git a/sys_path_hacks/lms/instructor_task/api_helper.py b/sys_path_hacks/lms/instructor_task/api_helper.py index e9b88ac820..84c1e56c90 100644 --- a/sys_path_hacks/lms/instructor_task/api_helper.py +++ b/sys_path_hacks/lms/instructor_task/api_helper.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.api_helper instead of lms.djangoapps.instructor_task.api_helper is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.api_helper') from lms.djangoapps.instructor_task.api_helper import * diff --git a/sys_path_hacks/lms/instructor_task/config/__init__.py b/sys_path_hacks/lms/instructor_task/config/__init__.py index 69fe88e0ce..729daa55d4 100644 --- a/sys_path_hacks/lms/instructor_task/config/__init__.py +++ b/sys_path_hacks/lms/instructor_task/config/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.config instead of lms.djangoapps.instructor_task.config is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.config') from lms.djangoapps.instructor_task.config import * diff --git a/sys_path_hacks/lms/instructor_task/config/models.py b/sys_path_hacks/lms/instructor_task/config/models.py index 021dd3a768..e1008352d2 100644 --- a/sys_path_hacks/lms/instructor_task/config/models.py +++ b/sys_path_hacks/lms/instructor_task/config/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.config.models instead of lms.djangoapps.instructor_task.config.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.config.models') from lms.djangoapps.instructor_task.config.models import * diff --git a/sys_path_hacks/lms/instructor_task/config/waffle.py b/sys_path_hacks/lms/instructor_task/config/waffle.py index 90d451709d..b772fa2dd4 100644 --- a/sys_path_hacks/lms/instructor_task/config/waffle.py +++ b/sys_path_hacks/lms/instructor_task/config/waffle.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.config.waffle instead of lms.djangoapps.instructor_task.config.waffle is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.config.waffle') from lms.djangoapps.instructor_task.config.waffle import * diff --git a/sys_path_hacks/lms/instructor_task/exceptions.py b/sys_path_hacks/lms/instructor_task/exceptions.py index 27222aa4c6..f209ee3e23 100644 --- a/sys_path_hacks/lms/instructor_task/exceptions.py +++ b/sys_path_hacks/lms/instructor_task/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.exceptions instead of lms.djangoapps.instructor_task.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.exceptions') from lms.djangoapps.instructor_task.exceptions import * diff --git a/sys_path_hacks/lms/instructor_task/management/__init__.py b/sys_path_hacks/lms/instructor_task/management/__init__.py index 7c1f617281..9a0d46eb73 100644 --- a/sys_path_hacks/lms/instructor_task/management/__init__.py +++ b/sys_path_hacks/lms/instructor_task/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.management instead of lms.djangoapps.instructor_task.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.management') from lms.djangoapps.instructor_task.management import * diff --git a/sys_path_hacks/lms/instructor_task/management/commands/__init__.py b/sys_path_hacks/lms/instructor_task/management/commands/__init__.py index e32572593d..9bc559da7c 100644 --- a/sys_path_hacks/lms/instructor_task/management/commands/__init__.py +++ b/sys_path_hacks/lms/instructor_task/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.management.commands instead of lms.djangoapps.instructor_task.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.management.commands') from lms.djangoapps.instructor_task.management.commands import * diff --git a/sys_path_hacks/lms/instructor_task/management/commands/fail_old_tasks.py b/sys_path_hacks/lms/instructor_task/management/commands/fail_old_tasks.py index 0ccbd1b43b..f74f64a476 100644 --- a/sys_path_hacks/lms/instructor_task/management/commands/fail_old_tasks.py +++ b/sys_path_hacks/lms/instructor_task/management/commands/fail_old_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.management.commands.fail_old_tasks instead of lms.djangoapps.instructor_task.management.commands.fail_old_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.management.commands.fail_old_tasks') from lms.djangoapps.instructor_task.management.commands.fail_old_tasks import * diff --git a/sys_path_hacks/lms/instructor_task/management/commands/tests/__init__.py b/sys_path_hacks/lms/instructor_task/management/commands/tests/__init__.py index 265bbbf489..9f67bb96fc 100644 --- a/sys_path_hacks/lms/instructor_task/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/instructor_task/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.management.commands.tests instead of lms.djangoapps.instructor_task.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.management.commands.tests') from lms.djangoapps.instructor_task.management.commands.tests import * diff --git a/sys_path_hacks/lms/instructor_task/management/commands/tests/test_fail_old_tasks.py b/sys_path_hacks/lms/instructor_task/management/commands/tests/test_fail_old_tasks.py index f2cec6a835..a652058e30 100644 --- a/sys_path_hacks/lms/instructor_task/management/commands/tests/test_fail_old_tasks.py +++ b/sys_path_hacks/lms/instructor_task/management/commands/tests/test_fail_old_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.management.commands.tests.test_fail_old_tasks instead of lms.djangoapps.instructor_task.management.commands.tests.test_fail_old_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.management.commands.tests.test_fail_old_tasks') from lms.djangoapps.instructor_task.management.commands.tests.test_fail_old_tasks import * diff --git a/sys_path_hacks/lms/instructor_task/models.py b/sys_path_hacks/lms/instructor_task/models.py index 40ae2e5046..7f5dbc6611 100644 --- a/sys_path_hacks/lms/instructor_task/models.py +++ b/sys_path_hacks/lms/instructor_task/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.models instead of lms.djangoapps.instructor_task.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.models') from lms.djangoapps.instructor_task.models import * diff --git a/sys_path_hacks/lms/instructor_task/subtasks.py b/sys_path_hacks/lms/instructor_task/subtasks.py index 7d054e74e6..4ae495ceb5 100644 --- a/sys_path_hacks/lms/instructor_task/subtasks.py +++ b/sys_path_hacks/lms/instructor_task/subtasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.subtasks instead of lms.djangoapps.instructor_task.subtasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.subtasks') from lms.djangoapps.instructor_task.subtasks import * diff --git a/sys_path_hacks/lms/instructor_task/tasks.py b/sys_path_hacks/lms/instructor_task/tasks.py index 14614989c0..00b37e87a1 100644 --- a/sys_path_hacks/lms/instructor_task/tasks.py +++ b/sys_path_hacks/lms/instructor_task/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks instead of lms.djangoapps.instructor_task.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks') from lms.djangoapps.instructor_task.tasks import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_base.py b/sys_path_hacks/lms/instructor_task/tasks_base.py index 2ccd8ae285..42b2c7d4d6 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_base.py +++ b/sys_path_hacks/lms/instructor_task/tasks_base.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_base instead of lms.djangoapps.instructor_task.tasks_base is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_base') from lms.djangoapps.instructor_task.tasks_base import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_helper/__init__.py b/sys_path_hacks/lms/instructor_task/tasks_helper/__init__.py index 688d817e20..64e29b2267 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_helper/__init__.py +++ b/sys_path_hacks/lms/instructor_task/tasks_helper/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_helper instead of lms.djangoapps.instructor_task.tasks_helper is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_helper') from lms.djangoapps.instructor_task.tasks_helper import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_helper/certs.py b/sys_path_hacks/lms/instructor_task/tasks_helper/certs.py index afbfa559e4..cd91b24861 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_helper/certs.py +++ b/sys_path_hacks/lms/instructor_task/tasks_helper/certs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_helper.certs instead of lms.djangoapps.instructor_task.tasks_helper.certs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_helper.certs') from lms.djangoapps.instructor_task.tasks_helper.certs import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_helper/enrollments.py b/sys_path_hacks/lms/instructor_task/tasks_helper/enrollments.py index 0d9539b427..d93782ffdf 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_helper/enrollments.py +++ b/sys_path_hacks/lms/instructor_task/tasks_helper/enrollments.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_helper.enrollments instead of lms.djangoapps.instructor_task.tasks_helper.enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_helper.enrollments') from lms.djangoapps.instructor_task.tasks_helper.enrollments import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_helper/grades.py b/sys_path_hacks/lms/instructor_task/tasks_helper/grades.py index b5cc8d153e..356e3f7985 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_helper/grades.py +++ b/sys_path_hacks/lms/instructor_task/tasks_helper/grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_helper.grades instead of lms.djangoapps.instructor_task.tasks_helper.grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_helper.grades') from lms.djangoapps.instructor_task.tasks_helper.grades import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_helper/misc.py b/sys_path_hacks/lms/instructor_task/tasks_helper/misc.py index 19c9ed160e..d4d819f43d 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_helper/misc.py +++ b/sys_path_hacks/lms/instructor_task/tasks_helper/misc.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_helper.misc instead of lms.djangoapps.instructor_task.tasks_helper.misc is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_helper.misc') from lms.djangoapps.instructor_task.tasks_helper.misc import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_helper/module_state.py b/sys_path_hacks/lms/instructor_task/tasks_helper/module_state.py index bce59a9ea7..e5eaafa6ee 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_helper/module_state.py +++ b/sys_path_hacks/lms/instructor_task/tasks_helper/module_state.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_helper.module_state instead of lms.djangoapps.instructor_task.tasks_helper.module_state is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_helper.module_state') from lms.djangoapps.instructor_task.tasks_helper.module_state import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_helper/runner.py b/sys_path_hacks/lms/instructor_task/tasks_helper/runner.py index 058effd1cf..0b832abd86 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_helper/runner.py +++ b/sys_path_hacks/lms/instructor_task/tasks_helper/runner.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_helper.runner instead of lms.djangoapps.instructor_task.tasks_helper.runner is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_helper.runner') from lms.djangoapps.instructor_task.tasks_helper.runner import * diff --git a/sys_path_hacks/lms/instructor_task/tasks_helper/utils.py b/sys_path_hacks/lms/instructor_task/tasks_helper/utils.py index 8ae27d985f..937cff94f1 100644 --- a/sys_path_hacks/lms/instructor_task/tasks_helper/utils.py +++ b/sys_path_hacks/lms/instructor_task/tasks_helper/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tasks_helper.utils instead of lms.djangoapps.instructor_task.tasks_helper.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tasks_helper.utils') from lms.djangoapps.instructor_task.tasks_helper.utils import * diff --git a/sys_path_hacks/lms/instructor_task/tests/__init__.py b/sys_path_hacks/lms/instructor_task/tests/__init__.py index 872fe94308..df4b68c193 100644 --- a/sys_path_hacks/lms/instructor_task/tests/__init__.py +++ b/sys_path_hacks/lms/instructor_task/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests instead of lms.djangoapps.instructor_task.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests') from lms.djangoapps.instructor_task.tests import * diff --git a/sys_path_hacks/lms/instructor_task/tests/factories.py b/sys_path_hacks/lms/instructor_task/tests/factories.py index 5d2d9c1a0e..c49142aa2a 100644 --- a/sys_path_hacks/lms/instructor_task/tests/factories.py +++ b/sys_path_hacks/lms/instructor_task/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.factories instead of lms.djangoapps.instructor_task.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.factories') from lms.djangoapps.instructor_task.tests.factories import * diff --git a/sys_path_hacks/lms/instructor_task/tests/test_api.py b/sys_path_hacks/lms/instructor_task/tests/test_api.py index 67b1ee2753..49cbb671ae 100644 --- a/sys_path_hacks/lms/instructor_task/tests/test_api.py +++ b/sys_path_hacks/lms/instructor_task/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.test_api instead of lms.djangoapps.instructor_task.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.test_api') from lms.djangoapps.instructor_task.tests.test_api import * diff --git a/sys_path_hacks/lms/instructor_task/tests/test_base.py b/sys_path_hacks/lms/instructor_task/tests/test_base.py index b8f56a4a2b..9ff99916e4 100644 --- a/sys_path_hacks/lms/instructor_task/tests/test_base.py +++ b/sys_path_hacks/lms/instructor_task/tests/test_base.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.test_base instead of lms.djangoapps.instructor_task.tests.test_base is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.test_base') from lms.djangoapps.instructor_task.tests.test_base import * diff --git a/sys_path_hacks/lms/instructor_task/tests/test_integration.py b/sys_path_hacks/lms/instructor_task/tests/test_integration.py index 722fe100af..9838fde9aa 100644 --- a/sys_path_hacks/lms/instructor_task/tests/test_integration.py +++ b/sys_path_hacks/lms/instructor_task/tests/test_integration.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.test_integration instead of lms.djangoapps.instructor_task.tests.test_integration is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.test_integration') from lms.djangoapps.instructor_task.tests.test_integration import * diff --git a/sys_path_hacks/lms/instructor_task/tests/test_models.py b/sys_path_hacks/lms/instructor_task/tests/test_models.py index 9adf46374d..34a3cfba7c 100644 --- a/sys_path_hacks/lms/instructor_task/tests/test_models.py +++ b/sys_path_hacks/lms/instructor_task/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.test_models instead of lms.djangoapps.instructor_task.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.test_models') from lms.djangoapps.instructor_task.tests.test_models import * diff --git a/sys_path_hacks/lms/instructor_task/tests/test_subtasks.py b/sys_path_hacks/lms/instructor_task/tests/test_subtasks.py index 5dd5dec92a..cd0e21e422 100644 --- a/sys_path_hacks/lms/instructor_task/tests/test_subtasks.py +++ b/sys_path_hacks/lms/instructor_task/tests/test_subtasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.test_subtasks instead of lms.djangoapps.instructor_task.tests.test_subtasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.test_subtasks') from lms.djangoapps.instructor_task.tests.test_subtasks import * diff --git a/sys_path_hacks/lms/instructor_task/tests/test_tasks.py b/sys_path_hacks/lms/instructor_task/tests/test_tasks.py index 60efabb171..500b3ad1a3 100644 --- a/sys_path_hacks/lms/instructor_task/tests/test_tasks.py +++ b/sys_path_hacks/lms/instructor_task/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.test_tasks instead of lms.djangoapps.instructor_task.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.test_tasks') from lms.djangoapps.instructor_task.tests.test_tasks import * diff --git a/sys_path_hacks/lms/instructor_task/tests/test_tasks_helper.py b/sys_path_hacks/lms/instructor_task/tests/test_tasks_helper.py index 4e84737857..8ae2ae984c 100644 --- a/sys_path_hacks/lms/instructor_task/tests/test_tasks_helper.py +++ b/sys_path_hacks/lms/instructor_task/tests/test_tasks_helper.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.test_tasks_helper instead of lms.djangoapps.instructor_task.tests.test_tasks_helper is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.test_tasks_helper') from lms.djangoapps.instructor_task.tests.test_tasks_helper import * diff --git a/sys_path_hacks/lms/instructor_task/tests/test_views.py b/sys_path_hacks/lms/instructor_task/tests/test_views.py index 1b98a5b8e3..8fc3fe3674 100644 --- a/sys_path_hacks/lms/instructor_task/tests/test_views.py +++ b/sys_path_hacks/lms/instructor_task/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.tests.test_views instead of lms.djangoapps.instructor_task.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.tests.test_views') from lms.djangoapps.instructor_task.tests.test_views import * diff --git a/sys_path_hacks/lms/instructor_task/views.py b/sys_path_hacks/lms/instructor_task/views.py index e2e165fe8b..2a5a415564 100644 --- a/sys_path_hacks/lms/instructor_task/views.py +++ b/sys_path_hacks/lms/instructor_task/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing instructor_task.views instead of lms.djangoapps.instructor_task.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'instructor_task.views') from lms.djangoapps.instructor_task.views import * diff --git a/sys_path_hacks/lms/learner_dashboard/__init__.py b/sys_path_hacks/lms/learner_dashboard/__init__.py index 96932a01d1..70972e3004 100644 --- a/sys_path_hacks/lms/learner_dashboard/__init__.py +++ b/sys_path_hacks/lms/learner_dashboard/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing learner_dashboard instead of lms.djangoapps.learner_dashboard is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'learner_dashboard') from lms.djangoapps.learner_dashboard import * diff --git a/sys_path_hacks/lms/learner_dashboard/programs.py b/sys_path_hacks/lms/learner_dashboard/programs.py index c925eaf2f6..e2861e2161 100644 --- a/sys_path_hacks/lms/learner_dashboard/programs.py +++ b/sys_path_hacks/lms/learner_dashboard/programs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing learner_dashboard.programs instead of lms.djangoapps.learner_dashboard.programs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'learner_dashboard.programs') from lms.djangoapps.learner_dashboard.programs import * diff --git a/sys_path_hacks/lms/learner_dashboard/tests/__init__.py b/sys_path_hacks/lms/learner_dashboard/tests/__init__.py index faf3118074..9148cbf3f9 100644 --- a/sys_path_hacks/lms/learner_dashboard/tests/__init__.py +++ b/sys_path_hacks/lms/learner_dashboard/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing learner_dashboard.tests instead of lms.djangoapps.learner_dashboard.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'learner_dashboard.tests') from lms.djangoapps.learner_dashboard.tests import * diff --git a/sys_path_hacks/lms/learner_dashboard/tests/test_programs.py b/sys_path_hacks/lms/learner_dashboard/tests/test_programs.py index 612ef4c86b..6c271c529f 100644 --- a/sys_path_hacks/lms/learner_dashboard/tests/test_programs.py +++ b/sys_path_hacks/lms/learner_dashboard/tests/test_programs.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing learner_dashboard.tests.test_programs instead of lms.djangoapps.learner_dashboard.tests.test_programs is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'learner_dashboard.tests.test_programs') from lms.djangoapps.learner_dashboard.tests.test_programs import * diff --git a/sys_path_hacks/lms/learner_dashboard/tests/test_utils.py b/sys_path_hacks/lms/learner_dashboard/tests/test_utils.py index a8422add5b..c359255b4a 100644 --- a/sys_path_hacks/lms/learner_dashboard/tests/test_utils.py +++ b/sys_path_hacks/lms/learner_dashboard/tests/test_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing learner_dashboard.tests.test_utils instead of lms.djangoapps.learner_dashboard.tests.test_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'learner_dashboard.tests.test_utils') from lms.djangoapps.learner_dashboard.tests.test_utils import * diff --git a/sys_path_hacks/lms/learner_dashboard/urls.py b/sys_path_hacks/lms/learner_dashboard/urls.py index 8ea84fe00b..f6e65f5017 100644 --- a/sys_path_hacks/lms/learner_dashboard/urls.py +++ b/sys_path_hacks/lms/learner_dashboard/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing learner_dashboard.urls instead of lms.djangoapps.learner_dashboard.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'learner_dashboard.urls') from lms.djangoapps.learner_dashboard.urls import * diff --git a/sys_path_hacks/lms/learner_dashboard/utils.py b/sys_path_hacks/lms/learner_dashboard/utils.py index b3e83ffe19..dc9ba24e97 100644 --- a/sys_path_hacks/lms/learner_dashboard/utils.py +++ b/sys_path_hacks/lms/learner_dashboard/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing learner_dashboard.utils instead of lms.djangoapps.learner_dashboard.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'learner_dashboard.utils') from lms.djangoapps.learner_dashboard.utils import * diff --git a/sys_path_hacks/lms/learner_dashboard/views.py b/sys_path_hacks/lms/learner_dashboard/views.py index 2b0e30d7f1..a09ef7bbe3 100644 --- a/sys_path_hacks/lms/learner_dashboard/views.py +++ b/sys_path_hacks/lms/learner_dashboard/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing learner_dashboard.views instead of lms.djangoapps.learner_dashboard.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'learner_dashboard.views') from lms.djangoapps.learner_dashboard.views import * diff --git a/sys_path_hacks/lms/lms_initialization/__init__.py b/sys_path_hacks/lms/lms_initialization/__init__.py index 7551d686a2..0448e56d2a 100644 --- a/sys_path_hacks/lms/lms_initialization/__init__.py +++ b/sys_path_hacks/lms/lms_initialization/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_initialization instead of lms.djangoapps.lms_initialization is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_initialization') from lms.djangoapps.lms_initialization import * diff --git a/sys_path_hacks/lms/lms_initialization/apps.py b/sys_path_hacks/lms/lms_initialization/apps.py index 860571ad13..720f43fd05 100644 --- a/sys_path_hacks/lms/lms_initialization/apps.py +++ b/sys_path_hacks/lms/lms_initialization/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_initialization.apps instead of lms.djangoapps.lms_initialization.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_initialization.apps') from lms.djangoapps.lms_initialization.apps import * diff --git a/sys_path_hacks/lms/lms_xblock/__init__.py b/sys_path_hacks/lms/lms_xblock/__init__.py index 7b742118fb..f2915f4cb9 100644 --- a/sys_path_hacks/lms/lms_xblock/__init__.py +++ b/sys_path_hacks/lms/lms_xblock/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock instead of lms.djangoapps.lms_xblock is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock') from lms.djangoapps.lms_xblock import * diff --git a/sys_path_hacks/lms/lms_xblock/admin.py b/sys_path_hacks/lms/lms_xblock/admin.py index 44b95c86fc..7d565980c8 100644 --- a/sys_path_hacks/lms/lms_xblock/admin.py +++ b/sys_path_hacks/lms/lms_xblock/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock.admin instead of lms.djangoapps.lms_xblock.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock.admin') from lms.djangoapps.lms_xblock.admin import * diff --git a/sys_path_hacks/lms/lms_xblock/apps.py b/sys_path_hacks/lms/lms_xblock/apps.py index 96ce9313e9..9e176af88e 100644 --- a/sys_path_hacks/lms/lms_xblock/apps.py +++ b/sys_path_hacks/lms/lms_xblock/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock.apps instead of lms.djangoapps.lms_xblock.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock.apps') from lms.djangoapps.lms_xblock.apps import * diff --git a/sys_path_hacks/lms/lms_xblock/field_data.py b/sys_path_hacks/lms/lms_xblock/field_data.py index 20df492a66..f6dad698fb 100644 --- a/sys_path_hacks/lms/lms_xblock/field_data.py +++ b/sys_path_hacks/lms/lms_xblock/field_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock.field_data instead of lms.djangoapps.lms_xblock.field_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock.field_data') from lms.djangoapps.lms_xblock.field_data import * diff --git a/sys_path_hacks/lms/lms_xblock/mixin.py b/sys_path_hacks/lms/lms_xblock/mixin.py index 51497b1b61..59ed9b6065 100644 --- a/sys_path_hacks/lms/lms_xblock/mixin.py +++ b/sys_path_hacks/lms/lms_xblock/mixin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock.mixin instead of lms.djangoapps.lms_xblock.mixin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock.mixin') from lms.djangoapps.lms_xblock.mixin import * diff --git a/sys_path_hacks/lms/lms_xblock/models.py b/sys_path_hacks/lms/lms_xblock/models.py index 69ef4dd323..453acfb3f5 100644 --- a/sys_path_hacks/lms/lms_xblock/models.py +++ b/sys_path_hacks/lms/lms_xblock/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock.models instead of lms.djangoapps.lms_xblock.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock.models') from lms.djangoapps.lms_xblock.models import * diff --git a/sys_path_hacks/lms/lms_xblock/runtime.py b/sys_path_hacks/lms/lms_xblock/runtime.py index 69bad9ea3d..1fb9252c56 100644 --- a/sys_path_hacks/lms/lms_xblock/runtime.py +++ b/sys_path_hacks/lms/lms_xblock/runtime.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock.runtime instead of lms.djangoapps.lms_xblock.runtime is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock.runtime') from lms.djangoapps.lms_xblock.runtime import * diff --git a/sys_path_hacks/lms/lms_xblock/test/__init__.py b/sys_path_hacks/lms/lms_xblock/test/__init__.py index f7987f1eac..132a09d297 100644 --- a/sys_path_hacks/lms/lms_xblock/test/__init__.py +++ b/sys_path_hacks/lms/lms_xblock/test/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock.test instead of lms.djangoapps.lms_xblock.test is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock.test') from lms.djangoapps.lms_xblock.test import * diff --git a/sys_path_hacks/lms/lms_xblock/test/test_runtime.py b/sys_path_hacks/lms/lms_xblock/test/test_runtime.py index 2644106fb8..819826234e 100644 --- a/sys_path_hacks/lms/lms_xblock/test/test_runtime.py +++ b/sys_path_hacks/lms/lms_xblock/test/test_runtime.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lms_xblock.test.test_runtime instead of lms.djangoapps.lms_xblock.test.test_runtime is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lms_xblock.test.test_runtime') from lms.djangoapps.lms_xblock.test.test_runtime import * diff --git a/sys_path_hacks/lms/lti_provider/__init__.py b/sys_path_hacks/lms/lti_provider/__init__.py index 3c081f7d8a..7e9a271a24 100644 --- a/sys_path_hacks/lms/lti_provider/__init__.py +++ b/sys_path_hacks/lms/lti_provider/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider instead of lms.djangoapps.lti_provider is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider') from lms.djangoapps.lti_provider import * diff --git a/sys_path_hacks/lms/lti_provider/admin.py b/sys_path_hacks/lms/lti_provider/admin.py index 4c002c9e3d..135462d9a4 100644 --- a/sys_path_hacks/lms/lti_provider/admin.py +++ b/sys_path_hacks/lms/lti_provider/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.admin instead of lms.djangoapps.lti_provider.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.admin') from lms.djangoapps.lti_provider.admin import * diff --git a/sys_path_hacks/lms/lti_provider/apps.py b/sys_path_hacks/lms/lti_provider/apps.py index 5a5da5eca1..244168c465 100644 --- a/sys_path_hacks/lms/lti_provider/apps.py +++ b/sys_path_hacks/lms/lti_provider/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.apps instead of lms.djangoapps.lti_provider.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.apps') from lms.djangoapps.lti_provider.apps import * diff --git a/sys_path_hacks/lms/lti_provider/management/__init__.py b/sys_path_hacks/lms/lti_provider/management/__init__.py index 9a74451ecf..b70e11311f 100644 --- a/sys_path_hacks/lms/lti_provider/management/__init__.py +++ b/sys_path_hacks/lms/lti_provider/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.management instead of lms.djangoapps.lti_provider.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.management') from lms.djangoapps.lti_provider.management import * diff --git a/sys_path_hacks/lms/lti_provider/management/commands/__init__.py b/sys_path_hacks/lms/lti_provider/management/commands/__init__.py index 5e9376170c..7d5a3f0eab 100644 --- a/sys_path_hacks/lms/lti_provider/management/commands/__init__.py +++ b/sys_path_hacks/lms/lti_provider/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.management.commands instead of lms.djangoapps.lti_provider.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.management.commands') from lms.djangoapps.lti_provider.management.commands import * diff --git a/sys_path_hacks/lms/lti_provider/management/commands/resend_lti_scores.py b/sys_path_hacks/lms/lti_provider/management/commands/resend_lti_scores.py index 46f7c3e14a..a73b30c5b4 100644 --- a/sys_path_hacks/lms/lti_provider/management/commands/resend_lti_scores.py +++ b/sys_path_hacks/lms/lti_provider/management/commands/resend_lti_scores.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.management.commands.resend_lti_scores instead of lms.djangoapps.lti_provider.management.commands.resend_lti_scores is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.management.commands.resend_lti_scores') from lms.djangoapps.lti_provider.management.commands.resend_lti_scores import * diff --git a/sys_path_hacks/lms/lti_provider/management/commands/tests/__init__.py b/sys_path_hacks/lms/lti_provider/management/commands/tests/__init__.py index 62f94cc450..d38c4d7469 100644 --- a/sys_path_hacks/lms/lti_provider/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/lti_provider/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.management.commands.tests instead of lms.djangoapps.lti_provider.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.management.commands.tests') from lms.djangoapps.lti_provider.management.commands.tests import * diff --git a/sys_path_hacks/lms/lti_provider/management/commands/tests/test_resend_lti_scores.py b/sys_path_hacks/lms/lti_provider/management/commands/tests/test_resend_lti_scores.py index 0556ebee1e..2e54ffcf9c 100644 --- a/sys_path_hacks/lms/lti_provider/management/commands/tests/test_resend_lti_scores.py +++ b/sys_path_hacks/lms/lti_provider/management/commands/tests/test_resend_lti_scores.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.management.commands.tests.test_resend_lti_scores instead of lms.djangoapps.lti_provider.management.commands.tests.test_resend_lti_scores is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.management.commands.tests.test_resend_lti_scores') from lms.djangoapps.lti_provider.management.commands.tests.test_resend_lti_scores import * diff --git a/sys_path_hacks/lms/lti_provider/models.py b/sys_path_hacks/lms/lti_provider/models.py index e308cb8d85..fea9a8ed88 100644 --- a/sys_path_hacks/lms/lti_provider/models.py +++ b/sys_path_hacks/lms/lti_provider/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.models instead of lms.djangoapps.lti_provider.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.models') from lms.djangoapps.lti_provider.models import * diff --git a/sys_path_hacks/lms/lti_provider/outcomes.py b/sys_path_hacks/lms/lti_provider/outcomes.py index 92063e1d93..4bb2516fb0 100644 --- a/sys_path_hacks/lms/lti_provider/outcomes.py +++ b/sys_path_hacks/lms/lti_provider/outcomes.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.outcomes instead of lms.djangoapps.lti_provider.outcomes is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.outcomes') from lms.djangoapps.lti_provider.outcomes import * diff --git a/sys_path_hacks/lms/lti_provider/signals.py b/sys_path_hacks/lms/lti_provider/signals.py index f665e65ca7..d08efb8c30 100644 --- a/sys_path_hacks/lms/lti_provider/signals.py +++ b/sys_path_hacks/lms/lti_provider/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.signals instead of lms.djangoapps.lti_provider.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.signals') from lms.djangoapps.lti_provider.signals import * diff --git a/sys_path_hacks/lms/lti_provider/signature_validator.py b/sys_path_hacks/lms/lti_provider/signature_validator.py index 85fc050a08..4dddb60619 100644 --- a/sys_path_hacks/lms/lti_provider/signature_validator.py +++ b/sys_path_hacks/lms/lti_provider/signature_validator.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.signature_validator instead of lms.djangoapps.lti_provider.signature_validator is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.signature_validator') from lms.djangoapps.lti_provider.signature_validator import * diff --git a/sys_path_hacks/lms/lti_provider/tasks.py b/sys_path_hacks/lms/lti_provider/tasks.py index 49ecdc5fc1..061ef7e6fe 100644 --- a/sys_path_hacks/lms/lti_provider/tasks.py +++ b/sys_path_hacks/lms/lti_provider/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.tasks instead of lms.djangoapps.lti_provider.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.tasks') from lms.djangoapps.lti_provider.tasks import * diff --git a/sys_path_hacks/lms/lti_provider/tests/__init__.py b/sys_path_hacks/lms/lti_provider/tests/__init__.py index 6caffab068..83807dd51a 100644 --- a/sys_path_hacks/lms/lti_provider/tests/__init__.py +++ b/sys_path_hacks/lms/lti_provider/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.tests instead of lms.djangoapps.lti_provider.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.tests') from lms.djangoapps.lti_provider.tests import * diff --git a/sys_path_hacks/lms/lti_provider/tests/test_outcomes.py b/sys_path_hacks/lms/lti_provider/tests/test_outcomes.py index be71e725c3..c3df443e2f 100644 --- a/sys_path_hacks/lms/lti_provider/tests/test_outcomes.py +++ b/sys_path_hacks/lms/lti_provider/tests/test_outcomes.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.tests.test_outcomes instead of lms.djangoapps.lti_provider.tests.test_outcomes is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.tests.test_outcomes') from lms.djangoapps.lti_provider.tests.test_outcomes import * diff --git a/sys_path_hacks/lms/lti_provider/tests/test_signature_validator.py b/sys_path_hacks/lms/lti_provider/tests/test_signature_validator.py index 4b3c8659c1..e4c93dff4f 100644 --- a/sys_path_hacks/lms/lti_provider/tests/test_signature_validator.py +++ b/sys_path_hacks/lms/lti_provider/tests/test_signature_validator.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.tests.test_signature_validator instead of lms.djangoapps.lti_provider.tests.test_signature_validator is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.tests.test_signature_validator') from lms.djangoapps.lti_provider.tests.test_signature_validator import * diff --git a/sys_path_hacks/lms/lti_provider/tests/test_tasks.py b/sys_path_hacks/lms/lti_provider/tests/test_tasks.py index 5c5d44b5e3..9ff5df500b 100644 --- a/sys_path_hacks/lms/lti_provider/tests/test_tasks.py +++ b/sys_path_hacks/lms/lti_provider/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.tests.test_tasks instead of lms.djangoapps.lti_provider.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.tests.test_tasks') from lms.djangoapps.lti_provider.tests.test_tasks import * diff --git a/sys_path_hacks/lms/lti_provider/tests/test_users.py b/sys_path_hacks/lms/lti_provider/tests/test_users.py index 01424af9f2..51e49bc2eb 100644 --- a/sys_path_hacks/lms/lti_provider/tests/test_users.py +++ b/sys_path_hacks/lms/lti_provider/tests/test_users.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.tests.test_users instead of lms.djangoapps.lti_provider.tests.test_users is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.tests.test_users') from lms.djangoapps.lti_provider.tests.test_users import * diff --git a/sys_path_hacks/lms/lti_provider/tests/test_views.py b/sys_path_hacks/lms/lti_provider/tests/test_views.py index 380d077777..0a457fcd4c 100644 --- a/sys_path_hacks/lms/lti_provider/tests/test_views.py +++ b/sys_path_hacks/lms/lti_provider/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.tests.test_views instead of lms.djangoapps.lti_provider.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.tests.test_views') from lms.djangoapps.lti_provider.tests.test_views import * diff --git a/sys_path_hacks/lms/lti_provider/urls.py b/sys_path_hacks/lms/lti_provider/urls.py index a505490a44..ef828cdfab 100644 --- a/sys_path_hacks/lms/lti_provider/urls.py +++ b/sys_path_hacks/lms/lti_provider/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.urls instead of lms.djangoapps.lti_provider.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.urls') from lms.djangoapps.lti_provider.urls import * diff --git a/sys_path_hacks/lms/lti_provider/users.py b/sys_path_hacks/lms/lti_provider/users.py index c8fe4addc8..1978434998 100644 --- a/sys_path_hacks/lms/lti_provider/users.py +++ b/sys_path_hacks/lms/lti_provider/users.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.users instead of lms.djangoapps.lti_provider.users is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.users') from lms.djangoapps.lti_provider.users import * diff --git a/sys_path_hacks/lms/lti_provider/views.py b/sys_path_hacks/lms/lti_provider/views.py index f9933a44f0..d4e44760d4 100644 --- a/sys_path_hacks/lms/lti_provider/views.py +++ b/sys_path_hacks/lms/lti_provider/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing lti_provider.views instead of lms.djangoapps.lti_provider.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'lti_provider.views') from lms.djangoapps.lti_provider.views import * diff --git a/sys_path_hacks/lms/mailing/__init__.py b/sys_path_hacks/lms/mailing/__init__.py index 984d1cf2bb..8332daf3cc 100644 --- a/sys_path_hacks/lms/mailing/__init__.py +++ b/sys_path_hacks/lms/mailing/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mailing instead of lms.djangoapps.mailing is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mailing') from lms.djangoapps.mailing import * diff --git a/sys_path_hacks/lms/mailing/management/__init__.py b/sys_path_hacks/lms/mailing/management/__init__.py index 0597cb3e8e..e2a5bc439d 100644 --- a/sys_path_hacks/lms/mailing/management/__init__.py +++ b/sys_path_hacks/lms/mailing/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mailing.management instead of lms.djangoapps.mailing.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mailing.management') from lms.djangoapps.mailing.management import * diff --git a/sys_path_hacks/lms/mailing/management/commands/__init__.py b/sys_path_hacks/lms/mailing/management/commands/__init__.py index 31de38e4ef..5ba7174026 100644 --- a/sys_path_hacks/lms/mailing/management/commands/__init__.py +++ b/sys_path_hacks/lms/mailing/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mailing.management.commands instead of lms.djangoapps.mailing.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mailing.management.commands') from lms.djangoapps.mailing.management.commands import * diff --git a/sys_path_hacks/lms/mailing/management/commands/mailchimp_id.py b/sys_path_hacks/lms/mailing/management/commands/mailchimp_id.py index 8b3773bc6f..103e3210e3 100644 --- a/sys_path_hacks/lms/mailing/management/commands/mailchimp_id.py +++ b/sys_path_hacks/lms/mailing/management/commands/mailchimp_id.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mailing.management.commands.mailchimp_id instead of lms.djangoapps.mailing.management.commands.mailchimp_id is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mailing.management.commands.mailchimp_id') from lms.djangoapps.mailing.management.commands.mailchimp_id import * diff --git a/sys_path_hacks/lms/mailing/management/commands/mailchimp_sync_announcements.py b/sys_path_hacks/lms/mailing/management/commands/mailchimp_sync_announcements.py index b887c3cb83..e12ef186cc 100644 --- a/sys_path_hacks/lms/mailing/management/commands/mailchimp_sync_announcements.py +++ b/sys_path_hacks/lms/mailing/management/commands/mailchimp_sync_announcements.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mailing.management.commands.mailchimp_sync_announcements instead of lms.djangoapps.mailing.management.commands.mailchimp_sync_announcements is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mailing.management.commands.mailchimp_sync_announcements') from lms.djangoapps.mailing.management.commands.mailchimp_sync_announcements import * diff --git a/sys_path_hacks/lms/mailing/management/commands/mailchimp_sync_course.py b/sys_path_hacks/lms/mailing/management/commands/mailchimp_sync_course.py index eafe93725b..b13cb4e412 100644 --- a/sys_path_hacks/lms/mailing/management/commands/mailchimp_sync_course.py +++ b/sys_path_hacks/lms/mailing/management/commands/mailchimp_sync_course.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mailing.management.commands.mailchimp_sync_course instead of lms.djangoapps.mailing.management.commands.mailchimp_sync_course is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mailing.management.commands.mailchimp_sync_course') from lms.djangoapps.mailing.management.commands.mailchimp_sync_course import * diff --git a/sys_path_hacks/lms/mobile_api/__init__.py b/sys_path_hacks/lms/mobile_api/__init__.py index cc8db11b7e..75ec0fb461 100644 --- a/sys_path_hacks/lms/mobile_api/__init__.py +++ b/sys_path_hacks/lms/mobile_api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api instead of lms.djangoapps.mobile_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api') from lms.djangoapps.mobile_api import * diff --git a/sys_path_hacks/lms/mobile_api/admin.py b/sys_path_hacks/lms/mobile_api/admin.py index 32c2c0a36d..e3a2829597 100644 --- a/sys_path_hacks/lms/mobile_api/admin.py +++ b/sys_path_hacks/lms/mobile_api/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.admin instead of lms.djangoapps.mobile_api.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.admin') from lms.djangoapps.mobile_api.admin import * diff --git a/sys_path_hacks/lms/mobile_api/context_processor.py b/sys_path_hacks/lms/mobile_api/context_processor.py index ad00d4e238..a4bfb2a659 100644 --- a/sys_path_hacks/lms/mobile_api/context_processor.py +++ b/sys_path_hacks/lms/mobile_api/context_processor.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.context_processor instead of lms.djangoapps.mobile_api.context_processor is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.context_processor') from lms.djangoapps.mobile_api.context_processor import * diff --git a/sys_path_hacks/lms/mobile_api/course_info/__init__.py b/sys_path_hacks/lms/mobile_api/course_info/__init__.py index d1e7222793..b6c9eba8e3 100644 --- a/sys_path_hacks/lms/mobile_api/course_info/__init__.py +++ b/sys_path_hacks/lms/mobile_api/course_info/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.course_info instead of lms.djangoapps.mobile_api.course_info is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.course_info') from lms.djangoapps.mobile_api.course_info import * diff --git a/sys_path_hacks/lms/mobile_api/course_info/models.py b/sys_path_hacks/lms/mobile_api/course_info/models.py index 8672b6ca0e..93d7fb6b44 100644 --- a/sys_path_hacks/lms/mobile_api/course_info/models.py +++ b/sys_path_hacks/lms/mobile_api/course_info/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.course_info.models instead of lms.djangoapps.mobile_api.course_info.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.course_info.models') from lms.djangoapps.mobile_api.course_info.models import * diff --git a/sys_path_hacks/lms/mobile_api/course_info/tests.py b/sys_path_hacks/lms/mobile_api/course_info/tests.py index 79a2016e65..a9d898b88b 100644 --- a/sys_path_hacks/lms/mobile_api/course_info/tests.py +++ b/sys_path_hacks/lms/mobile_api/course_info/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.course_info.tests instead of lms.djangoapps.mobile_api.course_info.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.course_info.tests') from lms.djangoapps.mobile_api.course_info.tests import * diff --git a/sys_path_hacks/lms/mobile_api/course_info/urls.py b/sys_path_hacks/lms/mobile_api/course_info/urls.py index fba5238f00..f9386b411c 100644 --- a/sys_path_hacks/lms/mobile_api/course_info/urls.py +++ b/sys_path_hacks/lms/mobile_api/course_info/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.course_info.urls instead of lms.djangoapps.mobile_api.course_info.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.course_info.urls') from lms.djangoapps.mobile_api.course_info.urls import * diff --git a/sys_path_hacks/lms/mobile_api/course_info/views.py b/sys_path_hacks/lms/mobile_api/course_info/views.py index 54b9900b61..451da2eccd 100644 --- a/sys_path_hacks/lms/mobile_api/course_info/views.py +++ b/sys_path_hacks/lms/mobile_api/course_info/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.course_info.views instead of lms.djangoapps.mobile_api.course_info.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.course_info.views') from lms.djangoapps.mobile_api.course_info.views import * diff --git a/sys_path_hacks/lms/mobile_api/decorators.py b/sys_path_hacks/lms/mobile_api/decorators.py index a5291f95fc..3ca672bc32 100644 --- a/sys_path_hacks/lms/mobile_api/decorators.py +++ b/sys_path_hacks/lms/mobile_api/decorators.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.decorators instead of lms.djangoapps.mobile_api.decorators is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.decorators') from lms.djangoapps.mobile_api.decorators import * diff --git a/sys_path_hacks/lms/mobile_api/errors.py b/sys_path_hacks/lms/mobile_api/errors.py index ac43b26e59..dabad16337 100644 --- a/sys_path_hacks/lms/mobile_api/errors.py +++ b/sys_path_hacks/lms/mobile_api/errors.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.errors instead of lms.djangoapps.mobile_api.errors is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.errors') from lms.djangoapps.mobile_api.errors import * diff --git a/sys_path_hacks/lms/mobile_api/middleware.py b/sys_path_hacks/lms/mobile_api/middleware.py index dd1dbe0d1f..9da38fcaa8 100644 --- a/sys_path_hacks/lms/mobile_api/middleware.py +++ b/sys_path_hacks/lms/mobile_api/middleware.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.middleware instead of lms.djangoapps.mobile_api.middleware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.middleware') from lms.djangoapps.mobile_api.middleware import * diff --git a/sys_path_hacks/lms/mobile_api/mobile_platform.py b/sys_path_hacks/lms/mobile_api/mobile_platform.py index f97e371260..433dc911b0 100644 --- a/sys_path_hacks/lms/mobile_api/mobile_platform.py +++ b/sys_path_hacks/lms/mobile_api/mobile_platform.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.mobile_platform instead of lms.djangoapps.mobile_api.mobile_platform is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.mobile_platform') from lms.djangoapps.mobile_api.mobile_platform import * diff --git a/sys_path_hacks/lms/mobile_api/models.py b/sys_path_hacks/lms/mobile_api/models.py index 28e88efafb..7497226275 100644 --- a/sys_path_hacks/lms/mobile_api/models.py +++ b/sys_path_hacks/lms/mobile_api/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.models instead of lms.djangoapps.mobile_api.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.models') from lms.djangoapps.mobile_api.models import * diff --git a/sys_path_hacks/lms/mobile_api/tests/__init__.py b/sys_path_hacks/lms/mobile_api/tests/__init__.py index 0954e7732b..17bed83fcc 100644 --- a/sys_path_hacks/lms/mobile_api/tests/__init__.py +++ b/sys_path_hacks/lms/mobile_api/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.tests instead of lms.djangoapps.mobile_api.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.tests') from lms.djangoapps.mobile_api.tests import * diff --git a/sys_path_hacks/lms/mobile_api/tests/test_context_processor.py b/sys_path_hacks/lms/mobile_api/tests/test_context_processor.py index ab55d21687..b4b4cdbda7 100644 --- a/sys_path_hacks/lms/mobile_api/tests/test_context_processor.py +++ b/sys_path_hacks/lms/mobile_api/tests/test_context_processor.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.tests.test_context_processor instead of lms.djangoapps.mobile_api.tests.test_context_processor is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.tests.test_context_processor') from lms.djangoapps.mobile_api.tests.test_context_processor import * diff --git a/sys_path_hacks/lms/mobile_api/tests/test_decorator.py b/sys_path_hacks/lms/mobile_api/tests/test_decorator.py index 465c362a8a..6064c59bbe 100644 --- a/sys_path_hacks/lms/mobile_api/tests/test_decorator.py +++ b/sys_path_hacks/lms/mobile_api/tests/test_decorator.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.tests.test_decorator instead of lms.djangoapps.mobile_api.tests.test_decorator is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.tests.test_decorator') from lms.djangoapps.mobile_api.tests.test_decorator import * diff --git a/sys_path_hacks/lms/mobile_api/tests/test_middleware.py b/sys_path_hacks/lms/mobile_api/tests/test_middleware.py index fd58d772a6..14dea44c59 100644 --- a/sys_path_hacks/lms/mobile_api/tests/test_middleware.py +++ b/sys_path_hacks/lms/mobile_api/tests/test_middleware.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.tests.test_middleware instead of lms.djangoapps.mobile_api.tests.test_middleware is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.tests.test_middleware') from lms.djangoapps.mobile_api.tests.test_middleware import * diff --git a/sys_path_hacks/lms/mobile_api/tests/test_milestones.py b/sys_path_hacks/lms/mobile_api/tests/test_milestones.py index f2d379ec39..9378a350ce 100644 --- a/sys_path_hacks/lms/mobile_api/tests/test_milestones.py +++ b/sys_path_hacks/lms/mobile_api/tests/test_milestones.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.tests.test_milestones instead of lms.djangoapps.mobile_api.tests.test_milestones is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.tests.test_milestones') from lms.djangoapps.mobile_api.tests.test_milestones import * diff --git a/sys_path_hacks/lms/mobile_api/tests/test_mobile_platform.py b/sys_path_hacks/lms/mobile_api/tests/test_mobile_platform.py index 0929083820..9d8a8128c5 100644 --- a/sys_path_hacks/lms/mobile_api/tests/test_mobile_platform.py +++ b/sys_path_hacks/lms/mobile_api/tests/test_mobile_platform.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.tests.test_mobile_platform instead of lms.djangoapps.mobile_api.tests.test_mobile_platform is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.tests.test_mobile_platform') from lms.djangoapps.mobile_api.tests.test_mobile_platform import * diff --git a/sys_path_hacks/lms/mobile_api/tests/test_model.py b/sys_path_hacks/lms/mobile_api/tests/test_model.py index 93c92b56f8..1367047195 100644 --- a/sys_path_hacks/lms/mobile_api/tests/test_model.py +++ b/sys_path_hacks/lms/mobile_api/tests/test_model.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.tests.test_model instead of lms.djangoapps.mobile_api.tests.test_model is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.tests.test_model') from lms.djangoapps.mobile_api.tests.test_model import * diff --git a/sys_path_hacks/lms/mobile_api/testutils.py b/sys_path_hacks/lms/mobile_api/testutils.py index 3af17c8b5a..772cec1051 100644 --- a/sys_path_hacks/lms/mobile_api/testutils.py +++ b/sys_path_hacks/lms/mobile_api/testutils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.testutils instead of lms.djangoapps.mobile_api.testutils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.testutils') from lms.djangoapps.mobile_api.testutils import * diff --git a/sys_path_hacks/lms/mobile_api/urls.py b/sys_path_hacks/lms/mobile_api/urls.py index 03fc3add7e..f2613deca0 100644 --- a/sys_path_hacks/lms/mobile_api/urls.py +++ b/sys_path_hacks/lms/mobile_api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.urls instead of lms.djangoapps.mobile_api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.urls') from lms.djangoapps.mobile_api.urls import * diff --git a/sys_path_hacks/lms/mobile_api/users/__init__.py b/sys_path_hacks/lms/mobile_api/users/__init__.py index 4229c9877d..1687b9ec6e 100644 --- a/sys_path_hacks/lms/mobile_api/users/__init__.py +++ b/sys_path_hacks/lms/mobile_api/users/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.users instead of lms.djangoapps.mobile_api.users is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.users') from lms.djangoapps.mobile_api.users import * diff --git a/sys_path_hacks/lms/mobile_api/users/serializers.py b/sys_path_hacks/lms/mobile_api/users/serializers.py index e7a8a76922..b9ef785b57 100644 --- a/sys_path_hacks/lms/mobile_api/users/serializers.py +++ b/sys_path_hacks/lms/mobile_api/users/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.users.serializers instead of lms.djangoapps.mobile_api.users.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.users.serializers') from lms.djangoapps.mobile_api.users.serializers import * diff --git a/sys_path_hacks/lms/mobile_api/users/tests.py b/sys_path_hacks/lms/mobile_api/users/tests.py index be0ed836aa..a190781651 100644 --- a/sys_path_hacks/lms/mobile_api/users/tests.py +++ b/sys_path_hacks/lms/mobile_api/users/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.users.tests instead of lms.djangoapps.mobile_api.users.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.users.tests') from lms.djangoapps.mobile_api.users.tests import * diff --git a/sys_path_hacks/lms/mobile_api/users/urls.py b/sys_path_hacks/lms/mobile_api/users/urls.py index c986ce072e..2272447c72 100644 --- a/sys_path_hacks/lms/mobile_api/users/urls.py +++ b/sys_path_hacks/lms/mobile_api/users/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.users.urls instead of lms.djangoapps.mobile_api.users.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.users.urls') from lms.djangoapps.mobile_api.users.urls import * diff --git a/sys_path_hacks/lms/mobile_api/users/views.py b/sys_path_hacks/lms/mobile_api/users/views.py index 7e79d305f0..000a168427 100644 --- a/sys_path_hacks/lms/mobile_api/users/views.py +++ b/sys_path_hacks/lms/mobile_api/users/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.users.views instead of lms.djangoapps.mobile_api.users.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.users.views') from lms.djangoapps.mobile_api.users.views import * diff --git a/sys_path_hacks/lms/mobile_api/utils.py b/sys_path_hacks/lms/mobile_api/utils.py index c35be15257..74b6eedb6d 100644 --- a/sys_path_hacks/lms/mobile_api/utils.py +++ b/sys_path_hacks/lms/mobile_api/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing mobile_api.utils instead of lms.djangoapps.mobile_api.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'mobile_api.utils') from lms.djangoapps.mobile_api.utils import * diff --git a/sys_path_hacks/lms/monitoring/__init__.py b/sys_path_hacks/lms/monitoring/__init__.py index c4b9596e66..647544ab09 100644 --- a/sys_path_hacks/lms/monitoring/__init__.py +++ b/sys_path_hacks/lms/monitoring/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing monitoring instead of lms.djangoapps.monitoring is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'monitoring') from lms.djangoapps.monitoring import * diff --git a/sys_path_hacks/lms/monitoring/scripts/clean_unmapped_view_modules.py b/sys_path_hacks/lms/monitoring/scripts/clean_unmapped_view_modules.py index cb7ace3942..e35bc34b49 100644 --- a/sys_path_hacks/lms/monitoring/scripts/clean_unmapped_view_modules.py +++ b/sys_path_hacks/lms/monitoring/scripts/clean_unmapped_view_modules.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing monitoring.scripts.clean_unmapped_view_modules instead of lms.djangoapps.monitoring.scripts.clean_unmapped_view_modules is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'monitoring.scripts.clean_unmapped_view_modules') from lms.djangoapps.monitoring.scripts.clean_unmapped_view_modules import * diff --git a/sys_path_hacks/lms/monitoring/scripts/generate_code_owner_mappings.py b/sys_path_hacks/lms/monitoring/scripts/generate_code_owner_mappings.py index 6c1b010778..54829c96b7 100644 --- a/sys_path_hacks/lms/monitoring/scripts/generate_code_owner_mappings.py +++ b/sys_path_hacks/lms/monitoring/scripts/generate_code_owner_mappings.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing monitoring.scripts.generate_code_owner_mappings instead of lms.djangoapps.monitoring.scripts.generate_code_owner_mappings is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'monitoring.scripts.generate_code_owner_mappings') from lms.djangoapps.monitoring.scripts.generate_code_owner_mappings import * diff --git a/sys_path_hacks/lms/program_enrollments/__init__.py b/sys_path_hacks/lms/program_enrollments/__init__.py index 6a113b0457..b4ae7d19ec 100644 --- a/sys_path_hacks/lms/program_enrollments/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments instead of lms.djangoapps.program_enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments') from lms.djangoapps.program_enrollments import * diff --git a/sys_path_hacks/lms/program_enrollments/admin.py b/sys_path_hacks/lms/program_enrollments/admin.py index ff7df7615a..1e1ca6f7db 100644 --- a/sys_path_hacks/lms/program_enrollments/admin.py +++ b/sys_path_hacks/lms/program_enrollments/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.admin instead of lms.djangoapps.program_enrollments.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.admin') from lms.djangoapps.program_enrollments.admin import * diff --git a/sys_path_hacks/lms/program_enrollments/api/__init__.py b/sys_path_hacks/lms/program_enrollments/api/__init__.py index d27a0caa48..2ec9915673 100644 --- a/sys_path_hacks/lms/program_enrollments/api/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api instead of lms.djangoapps.program_enrollments.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api') from lms.djangoapps.program_enrollments.api import * diff --git a/sys_path_hacks/lms/program_enrollments/api/grades.py b/sys_path_hacks/lms/program_enrollments/api/grades.py index 4b9ab37a9f..48121b69f5 100644 --- a/sys_path_hacks/lms/program_enrollments/api/grades.py +++ b/sys_path_hacks/lms/program_enrollments/api/grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.grades instead of lms.djangoapps.program_enrollments.api.grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.grades') from lms.djangoapps.program_enrollments.api.grades import * diff --git a/sys_path_hacks/lms/program_enrollments/api/linking.py b/sys_path_hacks/lms/program_enrollments/api/linking.py index b591853b91..3271e8980b 100644 --- a/sys_path_hacks/lms/program_enrollments/api/linking.py +++ b/sys_path_hacks/lms/program_enrollments/api/linking.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.linking instead of lms.djangoapps.program_enrollments.api.linking is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.linking') from lms.djangoapps.program_enrollments.api.linking import * diff --git a/sys_path_hacks/lms/program_enrollments/api/reading.py b/sys_path_hacks/lms/program_enrollments/api/reading.py index 76fb8bce80..37b75bd89a 100644 --- a/sys_path_hacks/lms/program_enrollments/api/reading.py +++ b/sys_path_hacks/lms/program_enrollments/api/reading.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.reading instead of lms.djangoapps.program_enrollments.api.reading is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.reading') from lms.djangoapps.program_enrollments.api.reading import * diff --git a/sys_path_hacks/lms/program_enrollments/api/tests/__init__.py b/sys_path_hacks/lms/program_enrollments/api/tests/__init__.py index 5052789991..17ae045f24 100644 --- a/sys_path_hacks/lms/program_enrollments/api/tests/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/api/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.tests instead of lms.djangoapps.program_enrollments.api.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.tests') from lms.djangoapps.program_enrollments.api.tests import * diff --git a/sys_path_hacks/lms/program_enrollments/api/tests/test_grades.py b/sys_path_hacks/lms/program_enrollments/api/tests/test_grades.py index 95650badc3..f3bce87aeb 100644 --- a/sys_path_hacks/lms/program_enrollments/api/tests/test_grades.py +++ b/sys_path_hacks/lms/program_enrollments/api/tests/test_grades.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.tests.test_grades instead of lms.djangoapps.program_enrollments.api.tests.test_grades is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.tests.test_grades') from lms.djangoapps.program_enrollments.api.tests.test_grades import * diff --git a/sys_path_hacks/lms/program_enrollments/api/tests/test_linking.py b/sys_path_hacks/lms/program_enrollments/api/tests/test_linking.py index 3f60218943..c324634f73 100644 --- a/sys_path_hacks/lms/program_enrollments/api/tests/test_linking.py +++ b/sys_path_hacks/lms/program_enrollments/api/tests/test_linking.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.tests.test_linking instead of lms.djangoapps.program_enrollments.api.tests.test_linking is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.tests.test_linking') from lms.djangoapps.program_enrollments.api.tests.test_linking import * diff --git a/sys_path_hacks/lms/program_enrollments/api/tests/test_reading.py b/sys_path_hacks/lms/program_enrollments/api/tests/test_reading.py index b7771a4735..ee1deca9ce 100644 --- a/sys_path_hacks/lms/program_enrollments/api/tests/test_reading.py +++ b/sys_path_hacks/lms/program_enrollments/api/tests/test_reading.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.tests.test_reading instead of lms.djangoapps.program_enrollments.api.tests.test_reading is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.tests.test_reading') from lms.djangoapps.program_enrollments.api.tests.test_reading import * diff --git a/sys_path_hacks/lms/program_enrollments/api/tests/test_writing.py b/sys_path_hacks/lms/program_enrollments/api/tests/test_writing.py index 9a4f43da1d..e358d0a44f 100644 --- a/sys_path_hacks/lms/program_enrollments/api/tests/test_writing.py +++ b/sys_path_hacks/lms/program_enrollments/api/tests/test_writing.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.tests.test_writing instead of lms.djangoapps.program_enrollments.api.tests.test_writing is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.tests.test_writing') from lms.djangoapps.program_enrollments.api.tests.test_writing import * diff --git a/sys_path_hacks/lms/program_enrollments/api/writing.py b/sys_path_hacks/lms/program_enrollments/api/writing.py index f5765f55bf..bf246b00d0 100644 --- a/sys_path_hacks/lms/program_enrollments/api/writing.py +++ b/sys_path_hacks/lms/program_enrollments/api/writing.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.api.writing instead of lms.djangoapps.program_enrollments.api.writing is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.api.writing') from lms.djangoapps.program_enrollments.api.writing import * diff --git a/sys_path_hacks/lms/program_enrollments/apps.py b/sys_path_hacks/lms/program_enrollments/apps.py index 12a0a13bf8..79bc5e43ca 100644 --- a/sys_path_hacks/lms/program_enrollments/apps.py +++ b/sys_path_hacks/lms/program_enrollments/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.apps instead of lms.djangoapps.program_enrollments.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.apps') from lms.djangoapps.program_enrollments.apps import * diff --git a/sys_path_hacks/lms/program_enrollments/constants.py b/sys_path_hacks/lms/program_enrollments/constants.py index c5ab9326e3..e5e2d4057b 100644 --- a/sys_path_hacks/lms/program_enrollments/constants.py +++ b/sys_path_hacks/lms/program_enrollments/constants.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.constants instead of lms.djangoapps.program_enrollments.constants is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.constants') from lms.djangoapps.program_enrollments.constants import * diff --git a/sys_path_hacks/lms/program_enrollments/exceptions.py b/sys_path_hacks/lms/program_enrollments/exceptions.py index 0d58ddcf01..3dc48cbcb8 100644 --- a/sys_path_hacks/lms/program_enrollments/exceptions.py +++ b/sys_path_hacks/lms/program_enrollments/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.exceptions instead of lms.djangoapps.program_enrollments.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.exceptions') from lms.djangoapps.program_enrollments.exceptions import * diff --git a/sys_path_hacks/lms/program_enrollments/management/__init__.py b/sys_path_hacks/lms/program_enrollments/management/__init__.py index 10909728be..fcd60236c6 100644 --- a/sys_path_hacks/lms/program_enrollments/management/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management instead of lms.djangoapps.program_enrollments.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management') from lms.djangoapps.program_enrollments.management import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/__init__.py b/sys_path_hacks/lms/program_enrollments/management/commands/__init__.py index a6240f1806..7b08dc55b6 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands instead of lms.djangoapps.program_enrollments.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands') from lms.djangoapps.program_enrollments.management.commands import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/expire_waiting_enrollments.py b/sys_path_hacks/lms/program_enrollments/management/commands/expire_waiting_enrollments.py index 700af7ad5d..9b999a9dd0 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/expire_waiting_enrollments.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/expire_waiting_enrollments.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.expire_waiting_enrollments instead of lms.djangoapps.program_enrollments.management.commands.expire_waiting_enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.expire_waiting_enrollments') from lms.djangoapps.program_enrollments.management.commands.expire_waiting_enrollments import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/link_program_enrollments.py b/sys_path_hacks/lms/program_enrollments/management/commands/link_program_enrollments.py index 1c07b78d7e..95e3beef5e 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/link_program_enrollments.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/link_program_enrollments.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.link_program_enrollments instead of lms.djangoapps.program_enrollments.management.commands.link_program_enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.link_program_enrollments') from lms.djangoapps.program_enrollments.management.commands.link_program_enrollments import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/migrate_saml_uids.py b/sys_path_hacks/lms/program_enrollments/management/commands/migrate_saml_uids.py index adf4615d09..265c50e380 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/migrate_saml_uids.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/migrate_saml_uids.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.migrate_saml_uids instead of lms.djangoapps.program_enrollments.management.commands.migrate_saml_uids is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.migrate_saml_uids') from lms.djangoapps.program_enrollments.management.commands.migrate_saml_uids import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/reset_enrollment_data.py b/sys_path_hacks/lms/program_enrollments/management/commands/reset_enrollment_data.py index 2683f5b562..09b2024684 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/reset_enrollment_data.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/reset_enrollment_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.reset_enrollment_data instead of lms.djangoapps.program_enrollments.management.commands.reset_enrollment_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.reset_enrollment_data') from lms.djangoapps.program_enrollments.management.commands.reset_enrollment_data import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/tests/__init__.py b/sys_path_hacks/lms/program_enrollments/management/commands/tests/__init__.py index be5640ee07..81a89c0745 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.tests instead of lms.djangoapps.program_enrollments.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.tests') from lms.djangoapps.program_enrollments.management.commands.tests import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_expire_waiting_enrollments.py b/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_expire_waiting_enrollments.py index efd8835755..209943b1c7 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_expire_waiting_enrollments.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_expire_waiting_enrollments.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.tests.test_expire_waiting_enrollments instead of lms.djangoapps.program_enrollments.management.commands.tests.test_expire_waiting_enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.tests.test_expire_waiting_enrollments') from lms.djangoapps.program_enrollments.management.commands.tests.test_expire_waiting_enrollments import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_link_program_enrollments.py b/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_link_program_enrollments.py index a6203a9568..e733135e16 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_link_program_enrollments.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_link_program_enrollments.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.tests.test_link_program_enrollments instead of lms.djangoapps.program_enrollments.management.commands.tests.test_link_program_enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.tests.test_link_program_enrollments') from lms.djangoapps.program_enrollments.management.commands.tests.test_link_program_enrollments import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_migrate_saml_uids.py b/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_migrate_saml_uids.py index fe1285abd8..f5048c78bd 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_migrate_saml_uids.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_migrate_saml_uids.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.tests.test_migrate_saml_uids instead of lms.djangoapps.program_enrollments.management.commands.tests.test_migrate_saml_uids is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.tests.test_migrate_saml_uids') from lms.djangoapps.program_enrollments.management.commands.tests.test_migrate_saml_uids import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_reset_enrollment_data.py b/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_reset_enrollment_data.py index 4f7204e5cd..d63737ed1e 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_reset_enrollment_data.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/tests/test_reset_enrollment_data.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.tests.test_reset_enrollment_data instead of lms.djangoapps.program_enrollments.management.commands.tests.test_reset_enrollment_data is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.tests.test_reset_enrollment_data') from lms.djangoapps.program_enrollments.management.commands.tests.test_reset_enrollment_data import * diff --git a/sys_path_hacks/lms/program_enrollments/management/commands/tests/utils.py b/sys_path_hacks/lms/program_enrollments/management/commands/tests/utils.py index 31ab345671..1f469ee780 100644 --- a/sys_path_hacks/lms/program_enrollments/management/commands/tests/utils.py +++ b/sys_path_hacks/lms/program_enrollments/management/commands/tests/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.management.commands.tests.utils instead of lms.djangoapps.program_enrollments.management.commands.tests.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.management.commands.tests.utils') from lms.djangoapps.program_enrollments.management.commands.tests.utils import * diff --git a/sys_path_hacks/lms/program_enrollments/models.py b/sys_path_hacks/lms/program_enrollments/models.py index e1528ec7f2..6cef800c27 100644 --- a/sys_path_hacks/lms/program_enrollments/models.py +++ b/sys_path_hacks/lms/program_enrollments/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.models instead of lms.djangoapps.program_enrollments.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.models') from lms.djangoapps.program_enrollments.models import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/__init__.py b/sys_path_hacks/lms/program_enrollments/rest_api/__init__.py index 417676f568..a55baac3f7 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api instead of lms.djangoapps.program_enrollments.rest_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api') from lms.djangoapps.program_enrollments.rest_api import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/urls.py b/sys_path_hacks/lms/program_enrollments/rest_api/urls.py index 93bd1e6004..08f3145cfc 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/urls.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.urls instead of lms.djangoapps.program_enrollments.rest_api.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.urls') from lms.djangoapps.program_enrollments.rest_api.urls import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/v1/__init__.py b/sys_path_hacks/lms/program_enrollments/rest_api/v1/__init__.py index ef12e01b81..82e0a21417 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/v1/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/v1/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.v1 instead of lms.djangoapps.program_enrollments.rest_api.v1 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.v1') from lms.djangoapps.program_enrollments.rest_api.v1 import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/v1/constants.py b/sys_path_hacks/lms/program_enrollments/rest_api/v1/constants.py index 16cd6bd0e3..e5a6d3b590 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/v1/constants.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/v1/constants.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.v1.constants instead of lms.djangoapps.program_enrollments.rest_api.v1.constants is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.v1.constants') from lms.djangoapps.program_enrollments.rest_api.v1.constants import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/v1/serializers.py b/sys_path_hacks/lms/program_enrollments/rest_api/v1/serializers.py index 16d051270a..a4f399adff 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/v1/serializers.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/v1/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.v1.serializers instead of lms.djangoapps.program_enrollments.rest_api.v1.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.v1.serializers') from lms.djangoapps.program_enrollments.rest_api.v1.serializers import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/v1/tests/__init__.py b/sys_path_hacks/lms/program_enrollments/rest_api/v1/tests/__init__.py index 5282769180..7c09c2b7f1 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/v1/tests/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/v1/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.v1.tests instead of lms.djangoapps.program_enrollments.rest_api.v1.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.v1.tests') from lms.djangoapps.program_enrollments.rest_api.v1.tests import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/v1/tests/test_views.py b/sys_path_hacks/lms/program_enrollments/rest_api/v1/tests/test_views.py index cd8ea1952d..c243f9432b 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/v1/tests/test_views.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/v1/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.v1.tests.test_views instead of lms.djangoapps.program_enrollments.rest_api.v1.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.v1.tests.test_views') from lms.djangoapps.program_enrollments.rest_api.v1.tests.test_views import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/v1/urls.py b/sys_path_hacks/lms/program_enrollments/rest_api/v1/urls.py index 2fd33a43dd..2ac356fcfc 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/v1/urls.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/v1/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.v1.urls instead of lms.djangoapps.program_enrollments.rest_api.v1.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.v1.urls') from lms.djangoapps.program_enrollments.rest_api.v1.urls import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/v1/utils.py b/sys_path_hacks/lms/program_enrollments/rest_api/v1/utils.py index 2467b89b2b..82f1bf258b 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/v1/utils.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/v1/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.v1.utils instead of lms.djangoapps.program_enrollments.rest_api.v1.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.v1.utils') from lms.djangoapps.program_enrollments.rest_api.v1.utils import * diff --git a/sys_path_hacks/lms/program_enrollments/rest_api/v1/views.py b/sys_path_hacks/lms/program_enrollments/rest_api/v1/views.py index 68bb68dc73..3714d049de 100644 --- a/sys_path_hacks/lms/program_enrollments/rest_api/v1/views.py +++ b/sys_path_hacks/lms/program_enrollments/rest_api/v1/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.rest_api.v1.views instead of lms.djangoapps.program_enrollments.rest_api.v1.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.rest_api.v1.views') from lms.djangoapps.program_enrollments.rest_api.v1.views import * diff --git a/sys_path_hacks/lms/program_enrollments/signals.py b/sys_path_hacks/lms/program_enrollments/signals.py index 61f69c6cbb..cee5db44c4 100644 --- a/sys_path_hacks/lms/program_enrollments/signals.py +++ b/sys_path_hacks/lms/program_enrollments/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.signals instead of lms.djangoapps.program_enrollments.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.signals') from lms.djangoapps.program_enrollments.signals import * diff --git a/sys_path_hacks/lms/program_enrollments/tasks.py b/sys_path_hacks/lms/program_enrollments/tasks.py index 6517e94654..eec739343b 100644 --- a/sys_path_hacks/lms/program_enrollments/tasks.py +++ b/sys_path_hacks/lms/program_enrollments/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.tasks instead of lms.djangoapps.program_enrollments.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.tasks') from lms.djangoapps.program_enrollments.tasks import * diff --git a/sys_path_hacks/lms/program_enrollments/tests/__init__.py b/sys_path_hacks/lms/program_enrollments/tests/__init__.py index e294be70a3..242c989c35 100644 --- a/sys_path_hacks/lms/program_enrollments/tests/__init__.py +++ b/sys_path_hacks/lms/program_enrollments/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.tests instead of lms.djangoapps.program_enrollments.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.tests') from lms.djangoapps.program_enrollments.tests import * diff --git a/sys_path_hacks/lms/program_enrollments/tests/factories.py b/sys_path_hacks/lms/program_enrollments/tests/factories.py index 9a241389a5..495f437984 100644 --- a/sys_path_hacks/lms/program_enrollments/tests/factories.py +++ b/sys_path_hacks/lms/program_enrollments/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.tests.factories instead of lms.djangoapps.program_enrollments.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.tests.factories') from lms.djangoapps.program_enrollments.tests.factories import * diff --git a/sys_path_hacks/lms/program_enrollments/tests/test_admin.py b/sys_path_hacks/lms/program_enrollments/tests/test_admin.py index 2afc96d29e..26530cc66d 100644 --- a/sys_path_hacks/lms/program_enrollments/tests/test_admin.py +++ b/sys_path_hacks/lms/program_enrollments/tests/test_admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.tests.test_admin instead of lms.djangoapps.program_enrollments.tests.test_admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.tests.test_admin') from lms.djangoapps.program_enrollments.tests.test_admin import * diff --git a/sys_path_hacks/lms/program_enrollments/tests/test_models.py b/sys_path_hacks/lms/program_enrollments/tests/test_models.py index 7a99f2718a..3a76f0e12b 100644 --- a/sys_path_hacks/lms/program_enrollments/tests/test_models.py +++ b/sys_path_hacks/lms/program_enrollments/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.tests.test_models instead of lms.djangoapps.program_enrollments.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.tests.test_models') from lms.djangoapps.program_enrollments.tests.test_models import * diff --git a/sys_path_hacks/lms/program_enrollments/tests/test_signals.py b/sys_path_hacks/lms/program_enrollments/tests/test_signals.py index fe290a1ed7..930ba529d5 100644 --- a/sys_path_hacks/lms/program_enrollments/tests/test_signals.py +++ b/sys_path_hacks/lms/program_enrollments/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.tests.test_signals instead of lms.djangoapps.program_enrollments.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.tests.test_signals') from lms.djangoapps.program_enrollments.tests.test_signals import * diff --git a/sys_path_hacks/lms/program_enrollments/tests/test_tasks.py b/sys_path_hacks/lms/program_enrollments/tests/test_tasks.py index 62e7030dbb..4a7a848706 100644 --- a/sys_path_hacks/lms/program_enrollments/tests/test_tasks.py +++ b/sys_path_hacks/lms/program_enrollments/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing program_enrollments.tests.test_tasks instead of lms.djangoapps.program_enrollments.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'program_enrollments.tests.test_tasks') from lms.djangoapps.program_enrollments.tests.test_tasks import * diff --git a/sys_path_hacks/lms/rss_proxy/__init__.py b/sys_path_hacks/lms/rss_proxy/__init__.py index 3fdbf658c6..497a09c27f 100644 --- a/sys_path_hacks/lms/rss_proxy/__init__.py +++ b/sys_path_hacks/lms/rss_proxy/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing rss_proxy instead of lms.djangoapps.rss_proxy is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'rss_proxy') from lms.djangoapps.rss_proxy import * diff --git a/sys_path_hacks/lms/rss_proxy/admin.py b/sys_path_hacks/lms/rss_proxy/admin.py index c7d743f53f..29c7f83b83 100644 --- a/sys_path_hacks/lms/rss_proxy/admin.py +++ b/sys_path_hacks/lms/rss_proxy/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing rss_proxy.admin instead of lms.djangoapps.rss_proxy.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'rss_proxy.admin') from lms.djangoapps.rss_proxy.admin import * diff --git a/sys_path_hacks/lms/rss_proxy/models.py b/sys_path_hacks/lms/rss_proxy/models.py index 3d82043f44..235b31576d 100644 --- a/sys_path_hacks/lms/rss_proxy/models.py +++ b/sys_path_hacks/lms/rss_proxy/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing rss_proxy.models instead of lms.djangoapps.rss_proxy.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'rss_proxy.models') from lms.djangoapps.rss_proxy.models import * diff --git a/sys_path_hacks/lms/rss_proxy/tests/__init__.py b/sys_path_hacks/lms/rss_proxy/tests/__init__.py index 4547f9c47a..16f9b79fb0 100644 --- a/sys_path_hacks/lms/rss_proxy/tests/__init__.py +++ b/sys_path_hacks/lms/rss_proxy/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing rss_proxy.tests instead of lms.djangoapps.rss_proxy.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'rss_proxy.tests') from lms.djangoapps.rss_proxy.tests import * diff --git a/sys_path_hacks/lms/rss_proxy/tests/test_models.py b/sys_path_hacks/lms/rss_proxy/tests/test_models.py index b5d87d2446..0cd1596d8f 100644 --- a/sys_path_hacks/lms/rss_proxy/tests/test_models.py +++ b/sys_path_hacks/lms/rss_proxy/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing rss_proxy.tests.test_models instead of lms.djangoapps.rss_proxy.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'rss_proxy.tests.test_models') from lms.djangoapps.rss_proxy.tests.test_models import * diff --git a/sys_path_hacks/lms/rss_proxy/tests/test_views.py b/sys_path_hacks/lms/rss_proxy/tests/test_views.py index 3850774e0c..851199a9c5 100644 --- a/sys_path_hacks/lms/rss_proxy/tests/test_views.py +++ b/sys_path_hacks/lms/rss_proxy/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing rss_proxy.tests.test_views instead of lms.djangoapps.rss_proxy.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'rss_proxy.tests.test_views') from lms.djangoapps.rss_proxy.tests.test_views import * diff --git a/sys_path_hacks/lms/rss_proxy/urls.py b/sys_path_hacks/lms/rss_proxy/urls.py index 91cff08949..adbe27562f 100644 --- a/sys_path_hacks/lms/rss_proxy/urls.py +++ b/sys_path_hacks/lms/rss_proxy/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing rss_proxy.urls instead of lms.djangoapps.rss_proxy.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'rss_proxy.urls') from lms.djangoapps.rss_proxy.urls import * diff --git a/sys_path_hacks/lms/rss_proxy/views.py b/sys_path_hacks/lms/rss_proxy/views.py index b8bac0392a..cb9531cb83 100644 --- a/sys_path_hacks/lms/rss_proxy/views.py +++ b/sys_path_hacks/lms/rss_proxy/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing rss_proxy.views instead of lms.djangoapps.rss_proxy.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'rss_proxy.views') from lms.djangoapps.rss_proxy.views import * diff --git a/sys_path_hacks/lms/shoppingcart/__init__.py b/sys_path_hacks/lms/shoppingcart/__init__.py index e00626f8b1..e638e8e93f 100644 --- a/sys_path_hacks/lms/shoppingcart/__init__.py +++ b/sys_path_hacks/lms/shoppingcart/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart instead of lms.djangoapps.shoppingcart is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart') from lms.djangoapps.shoppingcart import * diff --git a/sys_path_hacks/lms/shoppingcart/admin.py b/sys_path_hacks/lms/shoppingcart/admin.py index eec677a6e2..6fab5fbda8 100644 --- a/sys_path_hacks/lms/shoppingcart/admin.py +++ b/sys_path_hacks/lms/shoppingcart/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.admin instead of lms.djangoapps.shoppingcart.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.admin') from lms.djangoapps.shoppingcart.admin import * diff --git a/sys_path_hacks/lms/shoppingcart/api.py b/sys_path_hacks/lms/shoppingcart/api.py index c3e7f5a04d..addbd484c2 100644 --- a/sys_path_hacks/lms/shoppingcart/api.py +++ b/sys_path_hacks/lms/shoppingcart/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.api instead of lms.djangoapps.shoppingcart.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.api') from lms.djangoapps.shoppingcart.api import * diff --git a/sys_path_hacks/lms/shoppingcart/context_processor.py b/sys_path_hacks/lms/shoppingcart/context_processor.py index 8a20dc103c..2c9b8d825e 100644 --- a/sys_path_hacks/lms/shoppingcart/context_processor.py +++ b/sys_path_hacks/lms/shoppingcart/context_processor.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.context_processor instead of lms.djangoapps.shoppingcart.context_processor is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.context_processor') from lms.djangoapps.shoppingcart.context_processor import * diff --git a/sys_path_hacks/lms/shoppingcart/decorators.py b/sys_path_hacks/lms/shoppingcart/decorators.py index 8cf2795a8d..806bc3f1ca 100644 --- a/sys_path_hacks/lms/shoppingcart/decorators.py +++ b/sys_path_hacks/lms/shoppingcart/decorators.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.decorators instead of lms.djangoapps.shoppingcart.decorators is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.decorators') from lms.djangoapps.shoppingcart.decorators import * diff --git a/sys_path_hacks/lms/shoppingcart/exceptions.py b/sys_path_hacks/lms/shoppingcart/exceptions.py index 35111fa81e..61303f176c 100644 --- a/sys_path_hacks/lms/shoppingcart/exceptions.py +++ b/sys_path_hacks/lms/shoppingcart/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.exceptions instead of lms.djangoapps.shoppingcart.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.exceptions') from lms.djangoapps.shoppingcart.exceptions import * diff --git a/sys_path_hacks/lms/shoppingcart/management/__init__.py b/sys_path_hacks/lms/shoppingcart/management/__init__.py index 07bc98fdf2..5c47609baf 100644 --- a/sys_path_hacks/lms/shoppingcart/management/__init__.py +++ b/sys_path_hacks/lms/shoppingcart/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.management instead of lms.djangoapps.shoppingcart.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.management') from lms.djangoapps.shoppingcart.management import * diff --git a/sys_path_hacks/lms/shoppingcart/management/commands/__init__.py b/sys_path_hacks/lms/shoppingcart/management/commands/__init__.py index 1b23556c9c..832f02c72f 100644 --- a/sys_path_hacks/lms/shoppingcart/management/commands/__init__.py +++ b/sys_path_hacks/lms/shoppingcart/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.management.commands instead of lms.djangoapps.shoppingcart.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.management.commands') from lms.djangoapps.shoppingcart.management.commands import * diff --git a/sys_path_hacks/lms/shoppingcart/management/commands/retire_order.py b/sys_path_hacks/lms/shoppingcart/management/commands/retire_order.py index 446d4a5a51..78c12edba4 100644 --- a/sys_path_hacks/lms/shoppingcart/management/commands/retire_order.py +++ b/sys_path_hacks/lms/shoppingcart/management/commands/retire_order.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.management.commands.retire_order instead of lms.djangoapps.shoppingcart.management.commands.retire_order is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.management.commands.retire_order') from lms.djangoapps.shoppingcart.management.commands.retire_order import * diff --git a/sys_path_hacks/lms/shoppingcart/management/tests/__init__.py b/sys_path_hacks/lms/shoppingcart/management/tests/__init__.py index 598dda320e..51b9532df1 100644 --- a/sys_path_hacks/lms/shoppingcart/management/tests/__init__.py +++ b/sys_path_hacks/lms/shoppingcart/management/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.management.tests instead of lms.djangoapps.shoppingcart.management.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.management.tests') from lms.djangoapps.shoppingcart.management.tests import * diff --git a/sys_path_hacks/lms/shoppingcart/management/tests/test_retire_order.py b/sys_path_hacks/lms/shoppingcart/management/tests/test_retire_order.py index ab8c89155e..7802d777d9 100644 --- a/sys_path_hacks/lms/shoppingcart/management/tests/test_retire_order.py +++ b/sys_path_hacks/lms/shoppingcart/management/tests/test_retire_order.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.management.tests.test_retire_order instead of lms.djangoapps.shoppingcart.management.tests.test_retire_order is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.management.tests.test_retire_order') from lms.djangoapps.shoppingcart.management.tests.test_retire_order import * diff --git a/sys_path_hacks/lms/shoppingcart/models.py b/sys_path_hacks/lms/shoppingcart/models.py index 48e5f450c6..311d455c68 100644 --- a/sys_path_hacks/lms/shoppingcart/models.py +++ b/sys_path_hacks/lms/shoppingcart/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.models instead of lms.djangoapps.shoppingcart.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.models') from lms.djangoapps.shoppingcart.models import * diff --git a/sys_path_hacks/lms/shoppingcart/processors/CyberSource2.py b/sys_path_hacks/lms/shoppingcart/processors/CyberSource2.py index 2e8358623a..7e47665365 100644 --- a/sys_path_hacks/lms/shoppingcart/processors/CyberSource2.py +++ b/sys_path_hacks/lms/shoppingcart/processors/CyberSource2.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.processors.CyberSource2 instead of lms.djangoapps.shoppingcart.processors.CyberSource2 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.processors.CyberSource2') from lms.djangoapps.shoppingcart.processors.CyberSource2 import * diff --git a/sys_path_hacks/lms/shoppingcart/processors/__init__.py b/sys_path_hacks/lms/shoppingcart/processors/__init__.py index b4af6cd091..3ae0bf001a 100644 --- a/sys_path_hacks/lms/shoppingcart/processors/__init__.py +++ b/sys_path_hacks/lms/shoppingcart/processors/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.processors instead of lms.djangoapps.shoppingcart.processors is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.processors') from lms.djangoapps.shoppingcart.processors import * diff --git a/sys_path_hacks/lms/shoppingcart/processors/exceptions.py b/sys_path_hacks/lms/shoppingcart/processors/exceptions.py index 1b50d43c04..1366f4b2f5 100644 --- a/sys_path_hacks/lms/shoppingcart/processors/exceptions.py +++ b/sys_path_hacks/lms/shoppingcart/processors/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.processors.exceptions instead of lms.djangoapps.shoppingcart.processors.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.processors.exceptions') from lms.djangoapps.shoppingcart.processors.exceptions import * diff --git a/sys_path_hacks/lms/shoppingcart/processors/helpers.py b/sys_path_hacks/lms/shoppingcart/processors/helpers.py index 4719fa36c8..02d4aa5b9e 100644 --- a/sys_path_hacks/lms/shoppingcart/processors/helpers.py +++ b/sys_path_hacks/lms/shoppingcart/processors/helpers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.processors.helpers instead of lms.djangoapps.shoppingcart.processors.helpers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.processors.helpers') from lms.djangoapps.shoppingcart.processors.helpers import * diff --git a/sys_path_hacks/lms/shoppingcart/processors/tests/__init__.py b/sys_path_hacks/lms/shoppingcart/processors/tests/__init__.py index 8d6a21434a..0e7b62a1da 100644 --- a/sys_path_hacks/lms/shoppingcart/processors/tests/__init__.py +++ b/sys_path_hacks/lms/shoppingcart/processors/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.processors.tests instead of lms.djangoapps.shoppingcart.processors.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.processors.tests') from lms.djangoapps.shoppingcart.processors.tests import * diff --git a/sys_path_hacks/lms/shoppingcart/processors/tests/test_CyberSource2.py b/sys_path_hacks/lms/shoppingcart/processors/tests/test_CyberSource2.py index 2e0b281fb7..2898640025 100644 --- a/sys_path_hacks/lms/shoppingcart/processors/tests/test_CyberSource2.py +++ b/sys_path_hacks/lms/shoppingcart/processors/tests/test_CyberSource2.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.processors.tests.test_CyberSource2 instead of lms.djangoapps.shoppingcart.processors.tests.test_CyberSource2 is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.processors.tests.test_CyberSource2') from lms.djangoapps.shoppingcart.processors.tests.test_CyberSource2 import * diff --git a/sys_path_hacks/lms/shoppingcart/reports.py b/sys_path_hacks/lms/shoppingcart/reports.py index 166d40a54e..2b42e3a9ce 100644 --- a/sys_path_hacks/lms/shoppingcart/reports.py +++ b/sys_path_hacks/lms/shoppingcart/reports.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.reports instead of lms.djangoapps.shoppingcart.reports is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.reports') from lms.djangoapps.shoppingcart.reports import * diff --git a/sys_path_hacks/lms/shoppingcart/tests/__init__.py b/sys_path_hacks/lms/shoppingcart/tests/__init__.py index d2184e7bf9..1b1a906d85 100644 --- a/sys_path_hacks/lms/shoppingcart/tests/__init__.py +++ b/sys_path_hacks/lms/shoppingcart/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.tests instead of lms.djangoapps.shoppingcart.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.tests') from lms.djangoapps.shoppingcart.tests import * diff --git a/sys_path_hacks/lms/shoppingcart/tests/payment_fake.py b/sys_path_hacks/lms/shoppingcart/tests/payment_fake.py index 98d36e1e87..4df7cd0135 100644 --- a/sys_path_hacks/lms/shoppingcart/tests/payment_fake.py +++ b/sys_path_hacks/lms/shoppingcart/tests/payment_fake.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.tests.payment_fake instead of lms.djangoapps.shoppingcart.tests.payment_fake is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.tests.payment_fake') from lms.djangoapps.shoppingcart.tests.payment_fake import * diff --git a/sys_path_hacks/lms/shoppingcart/tests/test_context_processor.py b/sys_path_hacks/lms/shoppingcart/tests/test_context_processor.py index 76a0c9e168..2df7b0c896 100644 --- a/sys_path_hacks/lms/shoppingcart/tests/test_context_processor.py +++ b/sys_path_hacks/lms/shoppingcart/tests/test_context_processor.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.tests.test_context_processor instead of lms.djangoapps.shoppingcart.tests.test_context_processor is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.tests.test_context_processor') from lms.djangoapps.shoppingcart.tests.test_context_processor import * diff --git a/sys_path_hacks/lms/shoppingcart/tests/test_models.py b/sys_path_hacks/lms/shoppingcart/tests/test_models.py index e3ade72a81..10b460955e 100644 --- a/sys_path_hacks/lms/shoppingcart/tests/test_models.py +++ b/sys_path_hacks/lms/shoppingcart/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.tests.test_models instead of lms.djangoapps.shoppingcart.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.tests.test_models') from lms.djangoapps.shoppingcart.tests.test_models import * diff --git a/sys_path_hacks/lms/shoppingcart/tests/test_payment_fake.py b/sys_path_hacks/lms/shoppingcart/tests/test_payment_fake.py index 6c7122aaaa..1e82f9fb54 100644 --- a/sys_path_hacks/lms/shoppingcart/tests/test_payment_fake.py +++ b/sys_path_hacks/lms/shoppingcart/tests/test_payment_fake.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.tests.test_payment_fake instead of lms.djangoapps.shoppingcart.tests.test_payment_fake is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.tests.test_payment_fake') from lms.djangoapps.shoppingcart.tests.test_payment_fake import * diff --git a/sys_path_hacks/lms/shoppingcart/tests/test_reports.py b/sys_path_hacks/lms/shoppingcart/tests/test_reports.py index 7ad70f3492..161f190511 100644 --- a/sys_path_hacks/lms/shoppingcart/tests/test_reports.py +++ b/sys_path_hacks/lms/shoppingcart/tests/test_reports.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.tests.test_reports instead of lms.djangoapps.shoppingcart.tests.test_reports is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.tests.test_reports') from lms.djangoapps.shoppingcart.tests.test_reports import * diff --git a/sys_path_hacks/lms/shoppingcart/tests/test_views.py b/sys_path_hacks/lms/shoppingcart/tests/test_views.py index 0dc43cfa0e..2492b27de5 100644 --- a/sys_path_hacks/lms/shoppingcart/tests/test_views.py +++ b/sys_path_hacks/lms/shoppingcart/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.tests.test_views instead of lms.djangoapps.shoppingcart.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.tests.test_views') from lms.djangoapps.shoppingcart.tests.test_views import * diff --git a/sys_path_hacks/lms/shoppingcart/urls.py b/sys_path_hacks/lms/shoppingcart/urls.py index 807e39bbf4..bb30fa5962 100644 --- a/sys_path_hacks/lms/shoppingcart/urls.py +++ b/sys_path_hacks/lms/shoppingcart/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.urls instead of lms.djangoapps.shoppingcart.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.urls') from lms.djangoapps.shoppingcart.urls import * diff --git a/sys_path_hacks/lms/shoppingcart/utils.py b/sys_path_hacks/lms/shoppingcart/utils.py index 705d6140eb..ce1ba57431 100644 --- a/sys_path_hacks/lms/shoppingcart/utils.py +++ b/sys_path_hacks/lms/shoppingcart/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.utils instead of lms.djangoapps.shoppingcart.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.utils') from lms.djangoapps.shoppingcart.utils import * diff --git a/sys_path_hacks/lms/shoppingcart/views.py b/sys_path_hacks/lms/shoppingcart/views.py index 8345500129..d5a7ad8435 100644 --- a/sys_path_hacks/lms/shoppingcart/views.py +++ b/sys_path_hacks/lms/shoppingcart/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing shoppingcart.views instead of lms.djangoapps.shoppingcart.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'shoppingcart.views') from lms.djangoapps.shoppingcart.views import * diff --git a/sys_path_hacks/lms/static_template_view/__init__.py b/sys_path_hacks/lms/static_template_view/__init__.py index 108aee49ba..bc09c6ca09 100644 --- a/sys_path_hacks/lms/static_template_view/__init__.py +++ b/sys_path_hacks/lms/static_template_view/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing static_template_view instead of lms.djangoapps.static_template_view is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'static_template_view') from lms.djangoapps.static_template_view import * diff --git a/sys_path_hacks/lms/static_template_view/tests/__init__.py b/sys_path_hacks/lms/static_template_view/tests/__init__.py index 80b2ef7b00..77df3c51b2 100644 --- a/sys_path_hacks/lms/static_template_view/tests/__init__.py +++ b/sys_path_hacks/lms/static_template_view/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing static_template_view.tests instead of lms.djangoapps.static_template_view.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'static_template_view.tests') from lms.djangoapps.static_template_view.tests import * diff --git a/sys_path_hacks/lms/static_template_view/tests/test_views.py b/sys_path_hacks/lms/static_template_view/tests/test_views.py index 04f046ca25..285883e324 100644 --- a/sys_path_hacks/lms/static_template_view/tests/test_views.py +++ b/sys_path_hacks/lms/static_template_view/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing static_template_view.tests.test_views instead of lms.djangoapps.static_template_view.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'static_template_view.tests.test_views') from lms.djangoapps.static_template_view.tests.test_views import * diff --git a/sys_path_hacks/lms/static_template_view/urls.py b/sys_path_hacks/lms/static_template_view/urls.py index 691ab093b0..36fde64177 100644 --- a/sys_path_hacks/lms/static_template_view/urls.py +++ b/sys_path_hacks/lms/static_template_view/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing static_template_view.urls instead of lms.djangoapps.static_template_view.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'static_template_view.urls') from lms.djangoapps.static_template_view.urls import * diff --git a/sys_path_hacks/lms/static_template_view/views.py b/sys_path_hacks/lms/static_template_view/views.py index ed1192edd3..b1a7abcd12 100644 --- a/sys_path_hacks/lms/static_template_view/views.py +++ b/sys_path_hacks/lms/static_template_view/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing static_template_view.views instead of lms.djangoapps.static_template_view.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'static_template_view.views') from lms.djangoapps.static_template_view.views import * diff --git a/sys_path_hacks/lms/staticbook/__init__.py b/sys_path_hacks/lms/staticbook/__init__.py index a6f0413e52..bd21b81b37 100644 --- a/sys_path_hacks/lms/staticbook/__init__.py +++ b/sys_path_hacks/lms/staticbook/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing staticbook instead of lms.djangoapps.staticbook is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'staticbook') from lms.djangoapps.staticbook import * diff --git a/sys_path_hacks/lms/staticbook/tests.py b/sys_path_hacks/lms/staticbook/tests.py index eccb00a401..6b76441dd1 100644 --- a/sys_path_hacks/lms/staticbook/tests.py +++ b/sys_path_hacks/lms/staticbook/tests.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing staticbook.tests instead of lms.djangoapps.staticbook.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'staticbook.tests') from lms.djangoapps.staticbook.tests import * diff --git a/sys_path_hacks/lms/staticbook/views.py b/sys_path_hacks/lms/staticbook/views.py index 3dcb9e6910..3010917d4a 100644 --- a/sys_path_hacks/lms/staticbook/views.py +++ b/sys_path_hacks/lms/staticbook/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing staticbook.views instead of lms.djangoapps.staticbook.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'staticbook.views') from lms.djangoapps.staticbook.views import * diff --git a/sys_path_hacks/lms/support/__init__.py b/sys_path_hacks/lms/support/__init__.py index 6614bc2c94..756a708fe1 100644 --- a/sys_path_hacks/lms/support/__init__.py +++ b/sys_path_hacks/lms/support/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support instead of lms.djangoapps.support is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support') from lms.djangoapps.support import * diff --git a/sys_path_hacks/lms/support/decorators.py b/sys_path_hacks/lms/support/decorators.py index 8258c21e0e..30d442dc94 100644 --- a/sys_path_hacks/lms/support/decorators.py +++ b/sys_path_hacks/lms/support/decorators.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.decorators instead of lms.djangoapps.support.decorators is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.decorators') from lms.djangoapps.support.decorators import * diff --git a/sys_path_hacks/lms/support/serializers.py b/sys_path_hacks/lms/support/serializers.py index a612e0d1e9..93d02e68e5 100644 --- a/sys_path_hacks/lms/support/serializers.py +++ b/sys_path_hacks/lms/support/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.serializers instead of lms.djangoapps.support.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.serializers') from lms.djangoapps.support.serializers import * diff --git a/sys_path_hacks/lms/support/tests/__init__.py b/sys_path_hacks/lms/support/tests/__init__.py index 7099f0124f..780b1c0a33 100644 --- a/sys_path_hacks/lms/support/tests/__init__.py +++ b/sys_path_hacks/lms/support/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.tests instead of lms.djangoapps.support.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.tests') from lms.djangoapps.support.tests import * diff --git a/sys_path_hacks/lms/support/tests/test_views.py b/sys_path_hacks/lms/support/tests/test_views.py index 3f6f549b97..b85560d8ef 100644 --- a/sys_path_hacks/lms/support/tests/test_views.py +++ b/sys_path_hacks/lms/support/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.tests.test_views instead of lms.djangoapps.support.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.tests.test_views') from lms.djangoapps.support.tests.test_views import * diff --git a/sys_path_hacks/lms/support/urls.py b/sys_path_hacks/lms/support/urls.py index e40e4f7e65..3648cfd674 100644 --- a/sys_path_hacks/lms/support/urls.py +++ b/sys_path_hacks/lms/support/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.urls instead of lms.djangoapps.support.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.urls') from lms.djangoapps.support.urls import * diff --git a/sys_path_hacks/lms/support/views/__init__.py b/sys_path_hacks/lms/support/views/__init__.py index 9046a4a865..c074593632 100644 --- a/sys_path_hacks/lms/support/views/__init__.py +++ b/sys_path_hacks/lms/support/views/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views instead of lms.djangoapps.support.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views') from lms.djangoapps.support.views import * diff --git a/sys_path_hacks/lms/support/views/certificate.py b/sys_path_hacks/lms/support/views/certificate.py index e1a73f9400..f2e34aa9b6 100644 --- a/sys_path_hacks/lms/support/views/certificate.py +++ b/sys_path_hacks/lms/support/views/certificate.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.certificate instead of lms.djangoapps.support.views.certificate is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.certificate') from lms.djangoapps.support.views.certificate import * diff --git a/sys_path_hacks/lms/support/views/contact_us.py b/sys_path_hacks/lms/support/views/contact_us.py index 76e8f69dba..a5b3b4304f 100644 --- a/sys_path_hacks/lms/support/views/contact_us.py +++ b/sys_path_hacks/lms/support/views/contact_us.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.contact_us instead of lms.djangoapps.support.views.contact_us is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.contact_us') from lms.djangoapps.support.views.contact_us import * diff --git a/sys_path_hacks/lms/support/views/course_entitlements.py b/sys_path_hacks/lms/support/views/course_entitlements.py index ac33b415f5..f89a3401d9 100644 --- a/sys_path_hacks/lms/support/views/course_entitlements.py +++ b/sys_path_hacks/lms/support/views/course_entitlements.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.course_entitlements instead of lms.djangoapps.support.views.course_entitlements is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.course_entitlements') from lms.djangoapps.support.views.course_entitlements import * diff --git a/sys_path_hacks/lms/support/views/enrollments.py b/sys_path_hacks/lms/support/views/enrollments.py index f98902c3e0..1bfbbc9a1b 100644 --- a/sys_path_hacks/lms/support/views/enrollments.py +++ b/sys_path_hacks/lms/support/views/enrollments.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.enrollments instead of lms.djangoapps.support.views.enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.enrollments') from lms.djangoapps.support.views.enrollments import * diff --git a/sys_path_hacks/lms/support/views/feature_based_enrollments.py b/sys_path_hacks/lms/support/views/feature_based_enrollments.py index 97aa77ed95..e48ea74335 100644 --- a/sys_path_hacks/lms/support/views/feature_based_enrollments.py +++ b/sys_path_hacks/lms/support/views/feature_based_enrollments.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.feature_based_enrollments instead of lms.djangoapps.support.views.feature_based_enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.feature_based_enrollments') from lms.djangoapps.support.views.feature_based_enrollments import * diff --git a/sys_path_hacks/lms/support/views/index.py b/sys_path_hacks/lms/support/views/index.py index 8c204ffee0..40ef0e20d3 100644 --- a/sys_path_hacks/lms/support/views/index.py +++ b/sys_path_hacks/lms/support/views/index.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.index instead of lms.djangoapps.support.views.index is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.index') from lms.djangoapps.support.views.index import * diff --git a/sys_path_hacks/lms/support/views/manage_user.py b/sys_path_hacks/lms/support/views/manage_user.py index 7549fb81d6..1a4d3d22ea 100644 --- a/sys_path_hacks/lms/support/views/manage_user.py +++ b/sys_path_hacks/lms/support/views/manage_user.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.manage_user instead of lms.djangoapps.support.views.manage_user is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.manage_user') from lms.djangoapps.support.views.manage_user import * diff --git a/sys_path_hacks/lms/support/views/program_enrollments.py b/sys_path_hacks/lms/support/views/program_enrollments.py index 9228288dac..795f921247 100644 --- a/sys_path_hacks/lms/support/views/program_enrollments.py +++ b/sys_path_hacks/lms/support/views/program_enrollments.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.program_enrollments instead of lms.djangoapps.support.views.program_enrollments is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.program_enrollments') from lms.djangoapps.support.views.program_enrollments import * diff --git a/sys_path_hacks/lms/support/views/sso_records.py b/sys_path_hacks/lms/support/views/sso_records.py index 43d9c5f203..6b3633eda7 100644 --- a/sys_path_hacks/lms/support/views/sso_records.py +++ b/sys_path_hacks/lms/support/views/sso_records.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing support.views.sso_records instead of lms.djangoapps.support.views.sso_records is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'support.views.sso_records') from lms.djangoapps.support.views.sso_records import * diff --git a/sys_path_hacks/lms/survey/__init__.py b/sys_path_hacks/lms/survey/__init__.py index 8d16b08e31..23ae2f8a98 100644 --- a/sys_path_hacks/lms/survey/__init__.py +++ b/sys_path_hacks/lms/survey/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey instead of lms.djangoapps.survey is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey') from lms.djangoapps.survey import * diff --git a/sys_path_hacks/lms/survey/admin.py b/sys_path_hacks/lms/survey/admin.py index fef9b4eced..233473f3e8 100644 --- a/sys_path_hacks/lms/survey/admin.py +++ b/sys_path_hacks/lms/survey/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.admin instead of lms.djangoapps.survey.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.admin') from lms.djangoapps.survey.admin import * diff --git a/sys_path_hacks/lms/survey/apps.py b/sys_path_hacks/lms/survey/apps.py index b718d45e55..7ebc7ef7f7 100644 --- a/sys_path_hacks/lms/survey/apps.py +++ b/sys_path_hacks/lms/survey/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.apps instead of lms.djangoapps.survey.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.apps') from lms.djangoapps.survey.apps import * diff --git a/sys_path_hacks/lms/survey/exceptions.py b/sys_path_hacks/lms/survey/exceptions.py index b56285fbcb..c97ad8957d 100644 --- a/sys_path_hacks/lms/survey/exceptions.py +++ b/sys_path_hacks/lms/survey/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.exceptions instead of lms.djangoapps.survey.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.exceptions') from lms.djangoapps.survey.exceptions import * diff --git a/sys_path_hacks/lms/survey/models.py b/sys_path_hacks/lms/survey/models.py index 45c0c2d7e4..4a50364df2 100644 --- a/sys_path_hacks/lms/survey/models.py +++ b/sys_path_hacks/lms/survey/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.models instead of lms.djangoapps.survey.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.models') from lms.djangoapps.survey.models import * diff --git a/sys_path_hacks/lms/survey/signals.py b/sys_path_hacks/lms/survey/signals.py index f94eb8acdc..a34595ed7d 100644 --- a/sys_path_hacks/lms/survey/signals.py +++ b/sys_path_hacks/lms/survey/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.signals instead of lms.djangoapps.survey.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.signals') from lms.djangoapps.survey.signals import * diff --git a/sys_path_hacks/lms/survey/tests/__init__.py b/sys_path_hacks/lms/survey/tests/__init__.py index 0a91111043..3412bea867 100644 --- a/sys_path_hacks/lms/survey/tests/__init__.py +++ b/sys_path_hacks/lms/survey/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.tests instead of lms.djangoapps.survey.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.tests') from lms.djangoapps.survey.tests import * diff --git a/sys_path_hacks/lms/survey/tests/factories.py b/sys_path_hacks/lms/survey/tests/factories.py index 913c4c8c05..220652d970 100644 --- a/sys_path_hacks/lms/survey/tests/factories.py +++ b/sys_path_hacks/lms/survey/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.tests.factories instead of lms.djangoapps.survey.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.tests.factories') from lms.djangoapps.survey.tests.factories import * diff --git a/sys_path_hacks/lms/survey/tests/test_models.py b/sys_path_hacks/lms/survey/tests/test_models.py index 71c9fb2216..3be37bf70d 100644 --- a/sys_path_hacks/lms/survey/tests/test_models.py +++ b/sys_path_hacks/lms/survey/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.tests.test_models instead of lms.djangoapps.survey.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.tests.test_models') from lms.djangoapps.survey.tests.test_models import * diff --git a/sys_path_hacks/lms/survey/tests/test_signals.py b/sys_path_hacks/lms/survey/tests/test_signals.py index 5f5bff81ab..8e7e112d01 100644 --- a/sys_path_hacks/lms/survey/tests/test_signals.py +++ b/sys_path_hacks/lms/survey/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.tests.test_signals instead of lms.djangoapps.survey.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.tests.test_signals') from lms.djangoapps.survey.tests.test_signals import * diff --git a/sys_path_hacks/lms/survey/tests/test_utils.py b/sys_path_hacks/lms/survey/tests/test_utils.py index 9f2e24d8e4..a95a24ac65 100644 --- a/sys_path_hacks/lms/survey/tests/test_utils.py +++ b/sys_path_hacks/lms/survey/tests/test_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.tests.test_utils instead of lms.djangoapps.survey.tests.test_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.tests.test_utils') from lms.djangoapps.survey.tests.test_utils import * diff --git a/sys_path_hacks/lms/survey/tests/test_views.py b/sys_path_hacks/lms/survey/tests/test_views.py index fcc3c00e27..0659cc8392 100644 --- a/sys_path_hacks/lms/survey/tests/test_views.py +++ b/sys_path_hacks/lms/survey/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.tests.test_views instead of lms.djangoapps.survey.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.tests.test_views') from lms.djangoapps.survey.tests.test_views import * diff --git a/sys_path_hacks/lms/survey/urls.py b/sys_path_hacks/lms/survey/urls.py index f3e9cd8991..760c5e07b4 100644 --- a/sys_path_hacks/lms/survey/urls.py +++ b/sys_path_hacks/lms/survey/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.urls instead of lms.djangoapps.survey.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.urls') from lms.djangoapps.survey.urls import * diff --git a/sys_path_hacks/lms/survey/utils.py b/sys_path_hacks/lms/survey/utils.py index 2904901030..fbd356c88b 100644 --- a/sys_path_hacks/lms/survey/utils.py +++ b/sys_path_hacks/lms/survey/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.utils instead of lms.djangoapps.survey.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.utils') from lms.djangoapps.survey.utils import * diff --git a/sys_path_hacks/lms/survey/views.py b/sys_path_hacks/lms/survey/views.py index f0642b4047..c238a52e5d 100644 --- a/sys_path_hacks/lms/survey/views.py +++ b/sys_path_hacks/lms/survey/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing survey.views instead of lms.djangoapps.survey.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'survey.views') from lms.djangoapps.survey.views import * diff --git a/sys_path_hacks/lms/teams/__init__.py b/sys_path_hacks/lms/teams/__init__.py index ddbfc0ea38..cb563e8493 100644 --- a/sys_path_hacks/lms/teams/__init__.py +++ b/sys_path_hacks/lms/teams/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams instead of lms.djangoapps.teams is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams') from lms.djangoapps.teams import * diff --git a/sys_path_hacks/lms/teams/admin.py b/sys_path_hacks/lms/teams/admin.py index aaea180dab..018848da8c 100644 --- a/sys_path_hacks/lms/teams/admin.py +++ b/sys_path_hacks/lms/teams/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.admin instead of lms.djangoapps.teams.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.admin') from lms.djangoapps.teams.admin import * diff --git a/sys_path_hacks/lms/teams/api.py b/sys_path_hacks/lms/teams/api.py index 5a83656699..ef63f7f80b 100644 --- a/sys_path_hacks/lms/teams/api.py +++ b/sys_path_hacks/lms/teams/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.api instead of lms.djangoapps.teams.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.api') from lms.djangoapps.teams.api import * diff --git a/sys_path_hacks/lms/teams/api_urls.py b/sys_path_hacks/lms/teams/api_urls.py index 4f863cc446..dce53402fa 100644 --- a/sys_path_hacks/lms/teams/api_urls.py +++ b/sys_path_hacks/lms/teams/api_urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.api_urls instead of lms.djangoapps.teams.api_urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.api_urls') from lms.djangoapps.teams.api_urls import * diff --git a/sys_path_hacks/lms/teams/csv.py b/sys_path_hacks/lms/teams/csv.py index 41f1cf0ef4..8d31e78164 100644 --- a/sys_path_hacks/lms/teams/csv.py +++ b/sys_path_hacks/lms/teams/csv.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.csv instead of lms.djangoapps.teams.csv is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.csv') from lms.djangoapps.teams.csv import * diff --git a/sys_path_hacks/lms/teams/errors.py b/sys_path_hacks/lms/teams/errors.py index 2f4436f7f9..d48f4ba945 100644 --- a/sys_path_hacks/lms/teams/errors.py +++ b/sys_path_hacks/lms/teams/errors.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.errors instead of lms.djangoapps.teams.errors is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.errors') from lms.djangoapps.teams.errors import * diff --git a/sys_path_hacks/lms/teams/management/__init__.py b/sys_path_hacks/lms/teams/management/__init__.py index b3dda3dc2e..ab20cc7ce8 100644 --- a/sys_path_hacks/lms/teams/management/__init__.py +++ b/sys_path_hacks/lms/teams/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.management instead of lms.djangoapps.teams.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.management') from lms.djangoapps.teams.management import * diff --git a/sys_path_hacks/lms/teams/management/commands/__init__.py b/sys_path_hacks/lms/teams/management/commands/__init__.py index ea45d882d2..ca020d9031 100644 --- a/sys_path_hacks/lms/teams/management/commands/__init__.py +++ b/sys_path_hacks/lms/teams/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.management.commands instead of lms.djangoapps.teams.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.management.commands') from lms.djangoapps.teams.management.commands import * diff --git a/sys_path_hacks/lms/teams/management/commands/reindex_course_team.py b/sys_path_hacks/lms/teams/management/commands/reindex_course_team.py index ecf3e73101..5d4dba8f34 100644 --- a/sys_path_hacks/lms/teams/management/commands/reindex_course_team.py +++ b/sys_path_hacks/lms/teams/management/commands/reindex_course_team.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.management.commands.reindex_course_team instead of lms.djangoapps.teams.management.commands.reindex_course_team is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.management.commands.reindex_course_team') from lms.djangoapps.teams.management.commands.reindex_course_team import * diff --git a/sys_path_hacks/lms/teams/management/commands/tests/__init__.py b/sys_path_hacks/lms/teams/management/commands/tests/__init__.py index 131e3980d3..485c0c6643 100644 --- a/sys_path_hacks/lms/teams/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/teams/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.management.commands.tests instead of lms.djangoapps.teams.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.management.commands.tests') from lms.djangoapps.teams.management.commands.tests import * diff --git a/sys_path_hacks/lms/teams/management/commands/tests/test_reindex_course_team.py b/sys_path_hacks/lms/teams/management/commands/tests/test_reindex_course_team.py index 86a85e5344..7878f51a8c 100644 --- a/sys_path_hacks/lms/teams/management/commands/tests/test_reindex_course_team.py +++ b/sys_path_hacks/lms/teams/management/commands/tests/test_reindex_course_team.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.management.commands.tests.test_reindex_course_team instead of lms.djangoapps.teams.management.commands.tests.test_reindex_course_team is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.management.commands.tests.test_reindex_course_team') from lms.djangoapps.teams.management.commands.tests.test_reindex_course_team import * diff --git a/sys_path_hacks/lms/teams/models.py b/sys_path_hacks/lms/teams/models.py index 02d016a52c..d7b15f8d0b 100644 --- a/sys_path_hacks/lms/teams/models.py +++ b/sys_path_hacks/lms/teams/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.models instead of lms.djangoapps.teams.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.models') from lms.djangoapps.teams.models import * diff --git a/sys_path_hacks/lms/teams/plugins.py b/sys_path_hacks/lms/teams/plugins.py index 1f5f22c5f6..fe5bbe95db 100644 --- a/sys_path_hacks/lms/teams/plugins.py +++ b/sys_path_hacks/lms/teams/plugins.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.plugins instead of lms.djangoapps.teams.plugins is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.plugins') from lms.djangoapps.teams.plugins import * diff --git a/sys_path_hacks/lms/teams/search_indexes.py b/sys_path_hacks/lms/teams/search_indexes.py index 31ac681883..1c6b5d1ae5 100644 --- a/sys_path_hacks/lms/teams/search_indexes.py +++ b/sys_path_hacks/lms/teams/search_indexes.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.search_indexes instead of lms.djangoapps.teams.search_indexes is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.search_indexes') from lms.djangoapps.teams.search_indexes import * diff --git a/sys_path_hacks/lms/teams/serializers.py b/sys_path_hacks/lms/teams/serializers.py index 7778219a2d..7688fb4619 100644 --- a/sys_path_hacks/lms/teams/serializers.py +++ b/sys_path_hacks/lms/teams/serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.serializers instead of lms.djangoapps.teams.serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.serializers') from lms.djangoapps.teams.serializers import * diff --git a/sys_path_hacks/lms/teams/services.py b/sys_path_hacks/lms/teams/services.py index 1e4c135f33..72c8eec79e 100644 --- a/sys_path_hacks/lms/teams/services.py +++ b/sys_path_hacks/lms/teams/services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.services instead of lms.djangoapps.teams.services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.services') from lms.djangoapps.teams.services import * diff --git a/sys_path_hacks/lms/teams/tests/__init__.py b/sys_path_hacks/lms/teams/tests/__init__.py index b25e5104bf..a0c700ef63 100644 --- a/sys_path_hacks/lms/teams/tests/__init__.py +++ b/sys_path_hacks/lms/teams/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.tests instead of lms.djangoapps.teams.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.tests') from lms.djangoapps.teams.tests import * diff --git a/sys_path_hacks/lms/teams/tests/factories.py b/sys_path_hacks/lms/teams/tests/factories.py index 11e76d586d..8f626f1c16 100644 --- a/sys_path_hacks/lms/teams/tests/factories.py +++ b/sys_path_hacks/lms/teams/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.tests.factories instead of lms.djangoapps.teams.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.tests.factories') from lms.djangoapps.teams.tests.factories import * diff --git a/sys_path_hacks/lms/teams/tests/test_api.py b/sys_path_hacks/lms/teams/tests/test_api.py index 6d8aca7ae7..fdf1b8a187 100644 --- a/sys_path_hacks/lms/teams/tests/test_api.py +++ b/sys_path_hacks/lms/teams/tests/test_api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.tests.test_api instead of lms.djangoapps.teams.tests.test_api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.tests.test_api') from lms.djangoapps.teams.tests.test_api import * diff --git a/sys_path_hacks/lms/teams/tests/test_csv.py b/sys_path_hacks/lms/teams/tests/test_csv.py index ad7807b3a2..31b86d6eb5 100644 --- a/sys_path_hacks/lms/teams/tests/test_csv.py +++ b/sys_path_hacks/lms/teams/tests/test_csv.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.tests.test_csv instead of lms.djangoapps.teams.tests.test_csv is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.tests.test_csv') from lms.djangoapps.teams.tests.test_csv import * diff --git a/sys_path_hacks/lms/teams/tests/test_models.py b/sys_path_hacks/lms/teams/tests/test_models.py index fb53120756..a531ce6107 100644 --- a/sys_path_hacks/lms/teams/tests/test_models.py +++ b/sys_path_hacks/lms/teams/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.tests.test_models instead of lms.djangoapps.teams.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.tests.test_models') from lms.djangoapps.teams.tests.test_models import * diff --git a/sys_path_hacks/lms/teams/tests/test_serializers.py b/sys_path_hacks/lms/teams/tests/test_serializers.py index 5e986a8136..ba8fd6fd5c 100644 --- a/sys_path_hacks/lms/teams/tests/test_serializers.py +++ b/sys_path_hacks/lms/teams/tests/test_serializers.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.tests.test_serializers instead of lms.djangoapps.teams.tests.test_serializers is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.tests.test_serializers') from lms.djangoapps.teams.tests.test_serializers import * diff --git a/sys_path_hacks/lms/teams/tests/test_services.py b/sys_path_hacks/lms/teams/tests/test_services.py index 697e579621..776f3bdfda 100644 --- a/sys_path_hacks/lms/teams/tests/test_services.py +++ b/sys_path_hacks/lms/teams/tests/test_services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.tests.test_services instead of lms.djangoapps.teams.tests.test_services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.tests.test_services') from lms.djangoapps.teams.tests.test_services import * diff --git a/sys_path_hacks/lms/teams/tests/test_views.py b/sys_path_hacks/lms/teams/tests/test_views.py index 41668a57fb..6f9d0eb080 100644 --- a/sys_path_hacks/lms/teams/tests/test_views.py +++ b/sys_path_hacks/lms/teams/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.tests.test_views instead of lms.djangoapps.teams.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.tests.test_views') from lms.djangoapps.teams.tests.test_views import * diff --git a/sys_path_hacks/lms/teams/urls.py b/sys_path_hacks/lms/teams/urls.py index 36cae1ea4f..117cea2edb 100644 --- a/sys_path_hacks/lms/teams/urls.py +++ b/sys_path_hacks/lms/teams/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.urls instead of lms.djangoapps.teams.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.urls') from lms.djangoapps.teams.urls import * diff --git a/sys_path_hacks/lms/teams/utils.py b/sys_path_hacks/lms/teams/utils.py index 6aae2b9fca..cec3c809bb 100644 --- a/sys_path_hacks/lms/teams/utils.py +++ b/sys_path_hacks/lms/teams/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.utils instead of lms.djangoapps.teams.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.utils') from lms.djangoapps.teams.utils import * diff --git a/sys_path_hacks/lms/teams/views.py b/sys_path_hacks/lms/teams/views.py index 998b0ee2f8..2d274b6363 100644 --- a/sys_path_hacks/lms/teams/views.py +++ b/sys_path_hacks/lms/teams/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.views instead of lms.djangoapps.teams.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.views') from lms.djangoapps.teams.views import * diff --git a/sys_path_hacks/lms/teams/waffle.py b/sys_path_hacks/lms/teams/waffle.py index 2bcbfcc3af..ecc1f2810a 100644 --- a/sys_path_hacks/lms/teams/waffle.py +++ b/sys_path_hacks/lms/teams/waffle.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing teams.waffle instead of lms.djangoapps.teams.waffle is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'teams.waffle') from lms.djangoapps.teams.waffle import * diff --git a/sys_path_hacks/lms/tests/__init__.py b/sys_path_hacks/lms/tests/__init__.py index 97900588aa..f55e7bb8a9 100644 --- a/sys_path_hacks/lms/tests/__init__.py +++ b/sys_path_hacks/lms/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing tests instead of lms.djangoapps.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'tests') from lms.djangoapps.tests import * diff --git a/sys_path_hacks/lms/tests/test_utils.py b/sys_path_hacks/lms/tests/test_utils.py index 95436a515c..481d516ea0 100644 --- a/sys_path_hacks/lms/tests/test_utils.py +++ b/sys_path_hacks/lms/tests/test_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing tests.test_utils instead of lms.djangoapps.tests.test_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'tests.test_utils') from lms.djangoapps.tests.test_utils import * diff --git a/sys_path_hacks/lms/utils.py b/sys_path_hacks/lms/utils.py index 3fa7dd414b..d40f88b8db 100644 --- a/sys_path_hacks/lms/utils.py +++ b/sys_path_hacks/lms/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing utils instead of lms.djangoapps.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'utils') from lms.djangoapps.utils import * diff --git a/sys_path_hacks/lms/verify_student/__init__.py b/sys_path_hacks/lms/verify_student/__init__.py index 522328de77..908a0e3893 100644 --- a/sys_path_hacks/lms/verify_student/__init__.py +++ b/sys_path_hacks/lms/verify_student/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student instead of lms.djangoapps.verify_student is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student') from lms.djangoapps.verify_student import * diff --git a/sys_path_hacks/lms/verify_student/admin.py b/sys_path_hacks/lms/verify_student/admin.py index 4a3d64ab13..089e2d0143 100644 --- a/sys_path_hacks/lms/verify_student/admin.py +++ b/sys_path_hacks/lms/verify_student/admin.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.admin instead of lms.djangoapps.verify_student.admin is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.admin') from lms.djangoapps.verify_student.admin import * diff --git a/sys_path_hacks/lms/verify_student/api.py b/sys_path_hacks/lms/verify_student/api.py index 729a8b7f91..e32172753c 100644 --- a/sys_path_hacks/lms/verify_student/api.py +++ b/sys_path_hacks/lms/verify_student/api.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.api instead of lms.djangoapps.verify_student.api is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.api') from lms.djangoapps.verify_student.api import * diff --git a/sys_path_hacks/lms/verify_student/apps.py b/sys_path_hacks/lms/verify_student/apps.py index 0c4be54ecd..73996da1b2 100644 --- a/sys_path_hacks/lms/verify_student/apps.py +++ b/sys_path_hacks/lms/verify_student/apps.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.apps instead of lms.djangoapps.verify_student.apps is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.apps') from lms.djangoapps.verify_student.apps import * diff --git a/sys_path_hacks/lms/verify_student/emails.py b/sys_path_hacks/lms/verify_student/emails.py index a93543a3ad..ce15c3a7ac 100644 --- a/sys_path_hacks/lms/verify_student/emails.py +++ b/sys_path_hacks/lms/verify_student/emails.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.emails instead of lms.djangoapps.verify_student.emails is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.emails') from lms.djangoapps.verify_student.emails import * diff --git a/sys_path_hacks/lms/verify_student/exceptions.py b/sys_path_hacks/lms/verify_student/exceptions.py index 2634c4e4c6..4530ae2230 100644 --- a/sys_path_hacks/lms/verify_student/exceptions.py +++ b/sys_path_hacks/lms/verify_student/exceptions.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.exceptions instead of lms.djangoapps.verify_student.exceptions is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.exceptions') from lms.djangoapps.verify_student.exceptions import * diff --git a/sys_path_hacks/lms/verify_student/image.py b/sys_path_hacks/lms/verify_student/image.py index 476ea57183..1f21851335 100644 --- a/sys_path_hacks/lms/verify_student/image.py +++ b/sys_path_hacks/lms/verify_student/image.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.image instead of lms.djangoapps.verify_student.image is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.image') from lms.djangoapps.verify_student.image import * diff --git a/sys_path_hacks/lms/verify_student/management/__init__.py b/sys_path_hacks/lms/verify_student/management/__init__.py index 77b12811f6..b8196d266b 100644 --- a/sys_path_hacks/lms/verify_student/management/__init__.py +++ b/sys_path_hacks/lms/verify_student/management/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management instead of lms.djangoapps.verify_student.management is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management') from lms.djangoapps.verify_student.management import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/__init__.py b/sys_path_hacks/lms/verify_student/management/commands/__init__.py index bb7ce6c4d8..5823a86d6d 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/__init__.py +++ b/sys_path_hacks/lms/verify_student/management/commands/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands instead of lms.djangoapps.verify_student.management.commands is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands') from lms.djangoapps.verify_student.management.commands import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/backfill_sso_verifications_for_old_account_links.py b/sys_path_hacks/lms/verify_student/management/commands/backfill_sso_verifications_for_old_account_links.py index 40a1f73679..975775e4d6 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/backfill_sso_verifications_for_old_account_links.py +++ b/sys_path_hacks/lms/verify_student/management/commands/backfill_sso_verifications_for_old_account_links.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.backfill_sso_verifications_for_old_account_links instead of lms.djangoapps.verify_student.management.commands.backfill_sso_verifications_for_old_account_links is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.backfill_sso_verifications_for_old_account_links') from lms.djangoapps.verify_student.management.commands.backfill_sso_verifications_for_old_account_links import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/manual_verifications.py b/sys_path_hacks/lms/verify_student/management/commands/manual_verifications.py index 98a163e1a7..a92f73d7e1 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/manual_verifications.py +++ b/sys_path_hacks/lms/verify_student/management/commands/manual_verifications.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.manual_verifications instead of lms.djangoapps.verify_student.management.commands.manual_verifications is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.manual_verifications') from lms.djangoapps.verify_student.management.commands.manual_verifications import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/populate_expiry_date.py b/sys_path_hacks/lms/verify_student/management/commands/populate_expiry_date.py index 14742b7672..7474d62445 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/populate_expiry_date.py +++ b/sys_path_hacks/lms/verify_student/management/commands/populate_expiry_date.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.populate_expiry_date instead of lms.djangoapps.verify_student.management.commands.populate_expiry_date is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.populate_expiry_date') from lms.djangoapps.verify_student.management.commands.populate_expiry_date import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/retry_failed_photo_verifications.py b/sys_path_hacks/lms/verify_student/management/commands/retry_failed_photo_verifications.py index 13d5161c89..f9d0ddc134 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/retry_failed_photo_verifications.py +++ b/sys_path_hacks/lms/verify_student/management/commands/retry_failed_photo_verifications.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.retry_failed_photo_verifications instead of lms.djangoapps.verify_student.management.commands.retry_failed_photo_verifications is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.retry_failed_photo_verifications') from lms.djangoapps.verify_student.management.commands.retry_failed_photo_verifications import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/send_verification_expiry_email.py b/sys_path_hacks/lms/verify_student/management/commands/send_verification_expiry_email.py index 22121f16ba..280c24d063 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/send_verification_expiry_email.py +++ b/sys_path_hacks/lms/verify_student/management/commands/send_verification_expiry_email.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.send_verification_expiry_email instead of lms.djangoapps.verify_student.management.commands.send_verification_expiry_email is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.send_verification_expiry_email') from lms.djangoapps.verify_student.management.commands.send_verification_expiry_email import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/tests/__init__.py b/sys_path_hacks/lms/verify_student/management/commands/tests/__init__.py index 35e9b05c5f..aa2c3268b0 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/tests/__init__.py +++ b/sys_path_hacks/lms/verify_student/management/commands/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.tests instead of lms.djangoapps.verify_student.management.commands.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.tests') from lms.djangoapps.verify_student.management.commands.tests import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/tests/test_backfill_sso_verifications_for_old_account_links.py b/sys_path_hacks/lms/verify_student/management/commands/tests/test_backfill_sso_verifications_for_old_account_links.py index 8c30249c42..1c2525873b 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/tests/test_backfill_sso_verifications_for_old_account_links.py +++ b/sys_path_hacks/lms/verify_student/management/commands/tests/test_backfill_sso_verifications_for_old_account_links.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.tests.test_backfill_sso_verifications_for_old_account_links instead of lms.djangoapps.verify_student.management.commands.tests.test_backfill_sso_verifications_for_old_account_links is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.tests.test_backfill_sso_verifications_for_old_account_links') from lms.djangoapps.verify_student.management.commands.tests.test_backfill_sso_verifications_for_old_account_links import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/tests/test_manual_verify_student.py b/sys_path_hacks/lms/verify_student/management/commands/tests/test_manual_verify_student.py index 87cfd1c1a2..499006da24 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/tests/test_manual_verify_student.py +++ b/sys_path_hacks/lms/verify_student/management/commands/tests/test_manual_verify_student.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.tests.test_manual_verify_student instead of lms.djangoapps.verify_student.management.commands.tests.test_manual_verify_student is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.tests.test_manual_verify_student') from lms.djangoapps.verify_student.management.commands.tests.test_manual_verify_student import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/tests/test_populate_expiry_date.py b/sys_path_hacks/lms/verify_student/management/commands/tests/test_populate_expiry_date.py index b67a988ddd..9761d09d43 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/tests/test_populate_expiry_date.py +++ b/sys_path_hacks/lms/verify_student/management/commands/tests/test_populate_expiry_date.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.tests.test_populate_expiry_date instead of lms.djangoapps.verify_student.management.commands.tests.test_populate_expiry_date is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.tests.test_populate_expiry_date') from lms.djangoapps.verify_student.management.commands.tests.test_populate_expiry_date import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/tests/test_send_verification_expiry_email.py b/sys_path_hacks/lms/verify_student/management/commands/tests/test_send_verification_expiry_email.py index eb9be74b9e..525be3ab36 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/tests/test_send_verification_expiry_email.py +++ b/sys_path_hacks/lms/verify_student/management/commands/tests/test_send_verification_expiry_email.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.tests.test_send_verification_expiry_email instead of lms.djangoapps.verify_student.management.commands.tests.test_send_verification_expiry_email is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.tests.test_send_verification_expiry_email') from lms.djangoapps.verify_student.management.commands.tests.test_send_verification_expiry_email import * diff --git a/sys_path_hacks/lms/verify_student/management/commands/tests/test_verify_student.py b/sys_path_hacks/lms/verify_student/management/commands/tests/test_verify_student.py index e631ab170c..d5a359b2d0 100644 --- a/sys_path_hacks/lms/verify_student/management/commands/tests/test_verify_student.py +++ b/sys_path_hacks/lms/verify_student/management/commands/tests/test_verify_student.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.management.commands.tests.test_verify_student instead of lms.djangoapps.verify_student.management.commands.tests.test_verify_student is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.management.commands.tests.test_verify_student') from lms.djangoapps.verify_student.management.commands.tests.test_verify_student import * diff --git a/sys_path_hacks/lms/verify_student/message_types.py b/sys_path_hacks/lms/verify_student/message_types.py index b604d483d7..337648b8ae 100644 --- a/sys_path_hacks/lms/verify_student/message_types.py +++ b/sys_path_hacks/lms/verify_student/message_types.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.message_types instead of lms.djangoapps.verify_student.message_types is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.message_types') from lms.djangoapps.verify_student.message_types import * diff --git a/sys_path_hacks/lms/verify_student/models.py b/sys_path_hacks/lms/verify_student/models.py index a5b7ae7b63..2e5eafb05d 100644 --- a/sys_path_hacks/lms/verify_student/models.py +++ b/sys_path_hacks/lms/verify_student/models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.models instead of lms.djangoapps.verify_student.models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.models') from lms.djangoapps.verify_student.models import * diff --git a/sys_path_hacks/lms/verify_student/services.py b/sys_path_hacks/lms/verify_student/services.py index cecbd4092c..4a7cd30546 100644 --- a/sys_path_hacks/lms/verify_student/services.py +++ b/sys_path_hacks/lms/verify_student/services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.services instead of lms.djangoapps.verify_student.services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.services') from lms.djangoapps.verify_student.services import * diff --git a/sys_path_hacks/lms/verify_student/signals.py b/sys_path_hacks/lms/verify_student/signals.py index af0c3ae873..53660ff159 100644 --- a/sys_path_hacks/lms/verify_student/signals.py +++ b/sys_path_hacks/lms/verify_student/signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.signals instead of lms.djangoapps.verify_student.signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.signals') from lms.djangoapps.verify_student.signals import * diff --git a/sys_path_hacks/lms/verify_student/ssencrypt.py b/sys_path_hacks/lms/verify_student/ssencrypt.py index 11745c49f4..579aa8515f 100644 --- a/sys_path_hacks/lms/verify_student/ssencrypt.py +++ b/sys_path_hacks/lms/verify_student/ssencrypt.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.ssencrypt instead of lms.djangoapps.verify_student.ssencrypt is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.ssencrypt') from lms.djangoapps.verify_student.ssencrypt import * diff --git a/sys_path_hacks/lms/verify_student/tasks.py b/sys_path_hacks/lms/verify_student/tasks.py index 25ac2564c3..93ba59ca33 100644 --- a/sys_path_hacks/lms/verify_student/tasks.py +++ b/sys_path_hacks/lms/verify_student/tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tasks instead of lms.djangoapps.verify_student.tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tasks') from lms.djangoapps.verify_student.tasks import * diff --git a/sys_path_hacks/lms/verify_student/tests/__init__.py b/sys_path_hacks/lms/verify_student/tests/__init__.py index a0d8f03092..137f81865a 100644 --- a/sys_path_hacks/lms/verify_student/tests/__init__.py +++ b/sys_path_hacks/lms/verify_student/tests/__init__.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests instead of lms.djangoapps.verify_student.tests is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests') from lms.djangoapps.verify_student.tests import * diff --git a/sys_path_hacks/lms/verify_student/tests/factories.py b/sys_path_hacks/lms/verify_student/tests/factories.py index 2e79a5d231..b028179896 100644 --- a/sys_path_hacks/lms/verify_student/tests/factories.py +++ b/sys_path_hacks/lms/verify_student/tests/factories.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.factories instead of lms.djangoapps.verify_student.tests.factories is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.factories') from lms.djangoapps.verify_student.tests.factories import * diff --git a/sys_path_hacks/lms/verify_student/tests/fake_software_secure.py b/sys_path_hacks/lms/verify_student/tests/fake_software_secure.py index 7bdc341dcd..e2784f753b 100644 --- a/sys_path_hacks/lms/verify_student/tests/fake_software_secure.py +++ b/sys_path_hacks/lms/verify_student/tests/fake_software_secure.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.fake_software_secure instead of lms.djangoapps.verify_student.tests.fake_software_secure is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.fake_software_secure') from lms.djangoapps.verify_student.tests.fake_software_secure import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_fake_software_secure.py b/sys_path_hacks/lms/verify_student/tests/test_fake_software_secure.py index 74653aa74b..726aa2882f 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_fake_software_secure.py +++ b/sys_path_hacks/lms/verify_student/tests/test_fake_software_secure.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_fake_software_secure instead of lms.djangoapps.verify_student.tests.test_fake_software_secure is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_fake_software_secure') from lms.djangoapps.verify_student.tests.test_fake_software_secure import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_integration.py b/sys_path_hacks/lms/verify_student/tests/test_integration.py index 095f8346b3..f182c3bb50 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_integration.py +++ b/sys_path_hacks/lms/verify_student/tests/test_integration.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_integration instead of lms.djangoapps.verify_student.tests.test_integration is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_integration') from lms.djangoapps.verify_student.tests.test_integration import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_models.py b/sys_path_hacks/lms/verify_student/tests/test_models.py index 8936665fc2..96fa4b5333 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_models.py +++ b/sys_path_hacks/lms/verify_student/tests/test_models.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_models instead of lms.djangoapps.verify_student.tests.test_models is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_models') from lms.djangoapps.verify_student.tests.test_models import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_services.py b/sys_path_hacks/lms/verify_student/tests/test_services.py index d30447afee..6778f2ad1d 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_services.py +++ b/sys_path_hacks/lms/verify_student/tests/test_services.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_services instead of lms.djangoapps.verify_student.tests.test_services is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_services') from lms.djangoapps.verify_student.tests.test_services import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_signals.py b/sys_path_hacks/lms/verify_student/tests/test_signals.py index ae93a07a78..481f8ec4d7 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_signals.py +++ b/sys_path_hacks/lms/verify_student/tests/test_signals.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_signals instead of lms.djangoapps.verify_student.tests.test_signals is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_signals') from lms.djangoapps.verify_student.tests.test_signals import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_ssencrypt.py b/sys_path_hacks/lms/verify_student/tests/test_ssencrypt.py index 464bdc64e5..559ce59e8a 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_ssencrypt.py +++ b/sys_path_hacks/lms/verify_student/tests/test_ssencrypt.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_ssencrypt instead of lms.djangoapps.verify_student.tests.test_ssencrypt is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_ssencrypt') from lms.djangoapps.verify_student.tests.test_ssencrypt import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_tasks.py b/sys_path_hacks/lms/verify_student/tests/test_tasks.py index 207d5da1f5..a62e04d256 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_tasks.py +++ b/sys_path_hacks/lms/verify_student/tests/test_tasks.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_tasks instead of lms.djangoapps.verify_student.tests.test_tasks is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_tasks') from lms.djangoapps.verify_student.tests.test_tasks import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_utils.py b/sys_path_hacks/lms/verify_student/tests/test_utils.py index a10c102f12..14174ec9e9 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_utils.py +++ b/sys_path_hacks/lms/verify_student/tests/test_utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_utils instead of lms.djangoapps.verify_student.tests.test_utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_utils') from lms.djangoapps.verify_student.tests.test_utils import * diff --git a/sys_path_hacks/lms/verify_student/tests/test_views.py b/sys_path_hacks/lms/verify_student/tests/test_views.py index da44033d43..b3194748bc 100644 --- a/sys_path_hacks/lms/verify_student/tests/test_views.py +++ b/sys_path_hacks/lms/verify_student/tests/test_views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.tests.test_views instead of lms.djangoapps.verify_student.tests.test_views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.tests.test_views') from lms.djangoapps.verify_student.tests.test_views import * diff --git a/sys_path_hacks/lms/verify_student/toggles.py b/sys_path_hacks/lms/verify_student/toggles.py index ffe9608be8..14207e1d33 100644 --- a/sys_path_hacks/lms/verify_student/toggles.py +++ b/sys_path_hacks/lms/verify_student/toggles.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.toggles instead of lms.djangoapps.verify_student.toggles is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.toggles') from lms.djangoapps.verify_student.toggles import * diff --git a/sys_path_hacks/lms/verify_student/urls.py b/sys_path_hacks/lms/verify_student/urls.py index c636d3663e..b87d65adc0 100644 --- a/sys_path_hacks/lms/verify_student/urls.py +++ b/sys_path_hacks/lms/verify_student/urls.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.urls instead of lms.djangoapps.verify_student.urls is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.urls') from lms.djangoapps.verify_student.urls import * diff --git a/sys_path_hacks/lms/verify_student/utils.py b/sys_path_hacks/lms/verify_student/utils.py index 9b228b3f3b..f267ef2945 100644 --- a/sys_path_hacks/lms/verify_student/utils.py +++ b/sys_path_hacks/lms/verify_student/utils.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.utils instead of lms.djangoapps.verify_student.utils is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.utils') from lms.djangoapps.verify_student.utils import * diff --git a/sys_path_hacks/lms/verify_student/views.py b/sys_path_hacks/lms/verify_student/views.py index 57218f78af..8dc13a2a69 100644 --- a/sys_path_hacks/lms/verify_student/views.py +++ b/sys_path_hacks/lms/verify_student/views.py @@ -1,4 +1,5 @@ -import warnings -warnings.warn("Importing verify_student.views instead of lms.djangoapps.verify_student.views is deprecated", stacklevel=2) +from sys_path_hacks.warn import warn_deprecated_import + +warn_deprecated_import('lms.djangoapps', 'verify_student.views') from lms.djangoapps.verify_student.views import *