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

@@ -12,7 +12,7 @@ We use explicit imports here because (1) it hides internal variables in the
sub-modules and (2) it provides a nice catalog of functions for someone
using this API.
"""
from __future__ import absolute_import
from .grades import iter_program_course_grades
from .linking import link_program_enrollment_to_lms_user, link_program_enrollments

View File

@@ -4,7 +4,7 @@ Python API functions related to reading program-course grades.
Outside of this subpackage, import these functions
from `lms.djangoapps.program_enrollments.api`.
"""
from __future__ import absolute_import, unicode_literals
import logging

View File

@@ -5,7 +5,7 @@ LMS user.
Outside of this subpackage, import these functions
from `lms.djangoapps.program_enrollments.api`.
"""
from __future__ import absolute_import, unicode_literals
import logging

View File

@@ -4,7 +4,7 @@ Python API functions related to reading program enrollments.
Outside of this subpackage, import these functions
from `lms.djangoapps.program_enrollments.api`.
"""
from __future__ import absolute_import, unicode_literals
from organizations.models import Organization
from social_django.models import UserSocialAuth

View File

@@ -9,4 +9,4 @@ mocks in the view tests.
This file serves as a placeholder and reminder to do that the next time there
is development on the program_enrollments grades API.
"""
from __future__ import absolute_import, unicode_literals

View File

@@ -1,7 +1,7 @@
"""
Tests for account linking Python API.
"""
from __future__ import absolute_import, unicode_literals
from uuid import uuid4

View File

@@ -1,7 +1,7 @@
"""
Tests for program enrollment reading Python API.
"""
from __future__ import absolute_import, unicode_literals
from uuid import UUID

View File

@@ -7,7 +7,7 @@ This is okay for now because they are all used in
Eventually it would be good to directly test the Python API function and just use
mocks in the view tests.
"""
from __future__ import absolute_import, unicode_literals
from uuid import UUID

View File

@@ -4,7 +4,7 @@ Python API functions related to writing program enrollments.
Outside of this subpackage, import these functions
from `lms.djangoapps.program_enrollments.api`.
"""
from __future__ import absolute_import, unicode_literals
import logging