Run 2to3 -f future . -w

This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
This commit is contained in:
Feanil Patel
2019-12-30 10:35:30 -05:00
parent 52a1a72c97
commit 9cf2f9f298
2829 changed files with 2851 additions and 2851 deletions

View File

@@ -2,7 +2,7 @@
Test instructor.access
"""
from __future__ import absolute_import
import pytest
from six.moves import range

View File

@@ -2,7 +2,7 @@
"""
Unit tests for instructor.api methods.
"""
from __future__ import absolute_import, print_function
import datetime
import functools

View File

@@ -3,7 +3,7 @@
Unit tests for the localization of emails sent by instructor.api methods.
"""
from __future__ import absolute_import
from django.core import mail
from django.test.utils import override_settings

View File

@@ -1,5 +1,5 @@
"""Tests for the certificates panel of the instructor dash. """
from __future__ import absolute_import
import contextlib
import io

View File

@@ -2,7 +2,7 @@
Unit tests for Ecommerce feature flag in new instructor dashboard.
"""
from __future__ import absolute_import
import datetime

View File

@@ -5,7 +5,7 @@ non-Mongo backed courses, regardless of email feature flag, and
that the view is conditionally available when Course Auth is turned on.
"""
from __future__ import absolute_import
from django.urls import reverse
from opaque_keys.edx.keys import CourseKey

View File

@@ -2,7 +2,7 @@
"""
Unit tests for instructor.enrollment methods.
"""
from __future__ import absolute_import, print_function
import json
from abc import ABCMeta

View File

@@ -2,7 +2,7 @@
Exercises tests on the base_store_provider file
"""
from __future__ import absolute_import
from django.test import TestCase

View File

@@ -2,7 +2,7 @@
Unit tests for Edx Proctoring feature flag in new instructor dashboard.
"""
from __future__ import absolute_import
import ddt
from django.apps import apps

View File

@@ -1,7 +1,7 @@
"""
Test for the registration code status information.
"""
from __future__ import absolute_import
import json

View File

@@ -2,7 +2,7 @@
Tests for the InstructorService
"""
from __future__ import absolute_import
import json

View File

@@ -2,7 +2,7 @@
Tests of the instructor dashboard spoc gradebook
"""
from __future__ import absolute_import
from django.urls import reverse
from six import text_type

View File

@@ -1,7 +1,7 @@
"""
Tests for views/tools.py.
"""
from __future__ import absolute_import, unicode_literals
import datetime
import json

View File

@@ -1,7 +1,7 @@
"""
Utilities for instructor unit tests
"""
from __future__ import absolute_import
import datetime
import json

View File

@@ -1,7 +1,7 @@
"""
Unit tests for instructor_dashboard.py.
"""
from __future__ import absolute_import
import datetime