diff --git a/common/djangoapps/xblock_django/management/commands/ensure_indexes.py b/common/djangoapps/xblock_django/management/commands/ensure_indexes.py index 9c557fd010..270d559bf6 100644 --- a/common/djangoapps/xblock_django/management/commands/ensure_indexes.py +++ b/common/djangoapps/xblock_django/management/commands/ensure_indexes.py @@ -1,7 +1,8 @@ """ Creates Indexes on contentstore and modulestore databases. """ -from __future__ import print_function +from __future__ import absolute_import, print_function + from django.core.management.base import BaseCommand from xmodule.contentstore.django import contentstore diff --git a/common/djangoapps/xblock_django/migrations/0001_initial.py b/common/djangoapps/xblock_django/migrations/0001_initial.py index a12132d0cb..99c391d6c7 100644 --- a/common/djangoapps/xblock_django/migrations/0001_initial.py +++ b/common/djangoapps/xblock_django/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals import django.db.models.deletion from django.conf import settings diff --git a/common/djangoapps/xblock_django/migrations/0002_auto_20160204_0809.py b/common/djangoapps/xblock_django/migrations/0002_auto_20160204_0809.py index 602d87f484..2b87c82162 100644 --- a/common/djangoapps/xblock_django/migrations/0002_auto_20160204_0809.py +++ b/common/djangoapps/xblock_django/migrations/0002_auto_20160204_0809.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals from django.db import migrations, models diff --git a/common/djangoapps/xblock_django/migrations/0003_add_new_config_models.py b/common/djangoapps/xblock_django/migrations/0003_add_new_config_models.py index 44a7c53294..a83d9cb1cb 100644 --- a/common/djangoapps/xblock_django/migrations/0003_add_new_config_models.py +++ b/common/djangoapps/xblock_django/migrations/0003_add_new_config_models.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals import django.db.models.deletion from django.conf import settings diff --git a/common/djangoapps/xblock_django/migrations/0004_delete_xblock_disable_config.py b/common/djangoapps/xblock_django/migrations/0004_delete_xblock_disable_config.py index 44715cf286..cac41dd5bc 100644 --- a/common/djangoapps/xblock_django/migrations/0004_delete_xblock_disable_config.py +++ b/common/djangoapps/xblock_django/migrations/0004_delete_xblock_disable_config.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals from django.db import migrations, models diff --git a/common/djangoapps/xblock_django/tests/test_api.py b/common/djangoapps/xblock_django/tests/test_api.py index d71345b716..a98617f806 100644 --- a/common/djangoapps/xblock_django/tests/test_api.py +++ b/common/djangoapps/xblock_django/tests/test_api.py @@ -1,6 +1,8 @@ """ Tests related to XBlock support API. """ +from __future__ import absolute_import + from openedx.core.djangolib.testing.utils import CacheIsolationTestCase from xblock_django.api import authorable_xblocks, deprecated_xblocks, disabled_xblocks from xblock_django.models import XBlockConfiguration, XBlockStudioConfiguration, XBlockStudioConfigurationFlag diff --git a/common/djangoapps/xblock_django/tests/test_user_service.py b/common/djangoapps/xblock_django/tests/test_user_service.py index 43fe824bb2..4fee662e59 100644 --- a/common/djangoapps/xblock_django/tests/test_user_service.py +++ b/common/djangoapps/xblock_django/tests/test_user_service.py @@ -1,6 +1,8 @@ """ Tests for the DjangoXBlockUserService. """ +from __future__ import absolute_import + from django.test import TestCase from opaque_keys.edx.keys import CourseKey