From 84174e129d5a0182282a5f8719426d16cddb019b Mon Sep 17 00:00:00 2001 From: Brian Pandola Date: Wed, 8 Mar 2023 13:50:13 -0800 Subject: [PATCH] TechDebt: Remove `__future__` imports (#6037) --- moto/apigateway/models.py | 2 -- moto/guardduty/__init__.py | 2 -- moto/guardduty/models.py | 1 - moto/guardduty/responses.py | 1 - moto/guardduty/urls.py | 1 - moto/managedblockchain/models.py | 2 -- moto/meteringmarketplace/__init__.py | 1 - moto/meteringmarketplace/urls.py | 1 - tests/test_cloudformation/test_import_value.py | 2 -- tests/test_dynamodb/exceptions/test_key_length_exceptions.py | 2 -- tests/test_dynamodbstreams/test_dynamodbstreams.py | 2 -- 11 files changed, 17 deletions(-) diff --git a/moto/apigateway/models.py b/moto/apigateway/models.py index c6d8a1680..eb7935f33 100644 --- a/moto/apigateway/models.py +++ b/moto/apigateway/models.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import string import re import responses diff --git a/moto/guardduty/__init__.py b/moto/guardduty/__init__.py index 68e09dedd..c9d9d1c16 100644 --- a/moto/guardduty/__init__.py +++ b/moto/guardduty/__init__.py @@ -1,5 +1,3 @@ -from __future__ import unicode_literals - from .models import guardduty_backends from ..core.models import base_decorator diff --git a/moto/guardduty/models.py b/moto/guardduty/models.py index f5056537c..7fad4a360 100644 --- a/moto/guardduty/models.py +++ b/moto/guardduty/models.py @@ -1,4 +1,3 @@ -from __future__ import unicode_literals from moto.core import BaseBackend, BackendDict, BaseModel from moto.moto_api._internal import mock_random from datetime import datetime diff --git a/moto/guardduty/responses.py b/moto/guardduty/responses.py index 50f39e5de..7980bb1c3 100644 --- a/moto/guardduty/responses.py +++ b/moto/guardduty/responses.py @@ -1,4 +1,3 @@ -from __future__ import unicode_literals from moto.core.responses import BaseResponse from .models import guardduty_backends import json diff --git a/moto/guardduty/urls.py b/moto/guardduty/urls.py index 3ce2153ca..2b11aa66a 100644 --- a/moto/guardduty/urls.py +++ b/moto/guardduty/urls.py @@ -1,4 +1,3 @@ -from __future__ import unicode_literals from .responses import GuardDutyResponse response = GuardDutyResponse() diff --git a/moto/managedblockchain/models.py b/moto/managedblockchain/models.py index 6dc5c9be4..4456f95a0 100644 --- a/moto/managedblockchain/models.py +++ b/moto/managedblockchain/models.py @@ -1,5 +1,3 @@ -from __future__ import division - import datetime import re diff --git a/moto/meteringmarketplace/__init__.py b/moto/meteringmarketplace/__init__.py index cb50b9840..73497d4e4 100644 --- a/moto/meteringmarketplace/__init__.py +++ b/moto/meteringmarketplace/__init__.py @@ -1,4 +1,3 @@ -from __future__ import unicode_literals from .models import meteringmarketplace_backends from ..core.models import base_decorator diff --git a/moto/meteringmarketplace/urls.py b/moto/meteringmarketplace/urls.py index a351525e2..64abc56b5 100644 --- a/moto/meteringmarketplace/urls.py +++ b/moto/meteringmarketplace/urls.py @@ -1,4 +1,3 @@ -from __future__ import unicode_literals from .responses import MarketplaceMeteringResponse url_bases = [ diff --git a/tests/test_cloudformation/test_import_value.py b/tests/test_cloudformation/test_import_value.py index 82538cba3..6675373a2 100644 --- a/tests/test_cloudformation/test_import_value.py +++ b/tests/test_cloudformation/test_import_value.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, division - # Standard library modules import unittest diff --git a/tests/test_dynamodb/exceptions/test_key_length_exceptions.py b/tests/test_dynamodb/exceptions/test_key_length_exceptions.py index 32332988d..de7e1b1a7 100644 --- a/tests/test_dynamodb/exceptions/test_key_length_exceptions.py +++ b/tests/test_dynamodb/exceptions/test_key_length_exceptions.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import boto3 import sure # noqa # pylint: disable=unused-import import pytest diff --git a/tests/test_dynamodbstreams/test_dynamodbstreams.py b/tests/test_dynamodbstreams/test_dynamodbstreams.py index 2016d6424..00494ea73 100644 --- a/tests/test_dynamodbstreams/test_dynamodbstreams.py +++ b/tests/test_dynamodbstreams/test_dynamodbstreams.py @@ -1,5 +1,3 @@ -from __future__ import print_function - import pytest import boto3