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:
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Mixins for the CourseDiscoveryApiClient.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import json
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Tests for course utils.
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import ddt
|
||||
import mock
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
Tests for util.date_utils
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import unittest
|
||||
from datetime import datetime, timedelta, tzinfo
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Tests for util.db module."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import threading
|
||||
import time
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""Tests for disabling rate limiting. """
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ cache values can't leak between different TestCase classes and methods. The need
|
||||
for this will go away whenever Django merges the fix to reset the caches between
|
||||
tests (https://code.djangoproject.com/ticket/11505).
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from django.core.cache import caches
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"""
|
||||
Tests for file.py
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import os
|
||||
from datetime import datetime
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Test for JsonResponse and JsonResponseBadRequest util classes.
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import json
|
||||
import unittest
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Tests for keyword_substitution.py
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import six
|
||||
from ddt import ddt, file_data
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Tests for memcache in util app
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from django.core.cache import caches
|
||||
from django.test import TestCase
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Tests for the milestones helpers library, which is the integration point for the edx_milestones API
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import ddt
|
||||
import pytest
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""
|
||||
Tests for the organizations helpers library, which is the integration point for the edx-organizations API
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import six
|
||||
from mock import patch
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Tests for util.password_policy_validators module."""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Tests for sandboxing.py in util app
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from django.test import TestCase
|
||||
from django.test.utils import override_settings
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Tests for string_utils.py
|
||||
"""
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
|
||||
Reference in New Issue
Block a user