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

@@ -1,7 +1,7 @@
"""
Mixins for the CourseDiscoveryApiClient.
"""
from __future__ import absolute_import
import json

View File

@@ -1,7 +1,7 @@
"""
Tests for course utils.
"""
from __future__ import absolute_import
import ddt
import mock

View File

@@ -3,7 +3,7 @@
Tests for util.date_utils
"""
from __future__ import absolute_import
import unittest
from datetime import datetime, timedelta, tzinfo

View File

@@ -1,6 +1,6 @@
"""Tests for util.db module."""
from __future__ import absolute_import
import threading
import time

View File

@@ -1,5 +1,5 @@
"""Tests for disabling rate limiting. """
from __future__ import absolute_import
import unittest

View File

@@ -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

View File

@@ -2,7 +2,7 @@
"""
Tests for file.py
"""
from __future__ import absolute_import
import os
from datetime import datetime

View File

@@ -2,7 +2,7 @@
Test for JsonResponse and JsonResponseBadRequest util classes.
"""
from __future__ import absolute_import
import json
import unittest

View File

@@ -2,7 +2,7 @@
Tests for keyword_substitution.py
"""
from __future__ import absolute_import
import six
from ddt import ddt, file_data

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Tests for util.password_policy_validators module."""
from __future__ import absolute_import
import unittest

View File

@@ -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

View File

@@ -2,7 +2,7 @@
Tests for string_utils.py
"""
from __future__ import absolute_import
from django.test import TestCase