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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Tests for account linking Python API.
|
||||
"""
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
|
||||
from uuid import uuid4
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Tests for program enrollment reading Python API.
|
||||
"""
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
|
||||
from uuid import UUID
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user