Skip to content

Commit cfbce6b

Browse files
committed
trim now unneeded usage of botocore.compat shim
1 parent c70be78 commit cfbce6b

11 files changed

+18
-11
lines changed

Diff for: tests/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@
2727
from io import BytesIO
2828
from subprocess import PIPE, Popen
2929
from unittest import mock
30+
from urllib.parse import parse_qs, urlparse
3031

3132
from dateutil.tz import tzlocal
3233

3334
import botocore.loaders
3435
import botocore.session
3536
from botocore import credentials, utils
3637
from botocore.awsrequest import AWSResponse
37-
from botocore.compat import HAS_CRT, parse_qs, urlparse
38+
from botocore.compat import HAS_CRT
3839
from botocore.configprovider import create_botocore_default_config_mapping
3940
from botocore.httpchecksum import _CHECKSUM_CLS, DEFAULT_CHECKSUM_ALGORITHM
4041
from botocore.stub import Stubber

Diff for: tests/unit/auth/test_signers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
import io
1818
import json
1919
import time
20+
from urllib.parse import parse_qs, urlsplit
2021

2122
import botocore.auth
2223
import botocore.credentials
2324
from botocore.awsrequest import AWSRequest
24-
from botocore.compat import HTTPHeaders, parse_qs, urlsplit
25+
from botocore.compat import HTTPHeaders
2526
from tests import mock, unittest
2627

2728

Diff for: tests/unit/auth/test_sigv4.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
import os
3030
import re
3131
from http.server import BaseHTTPRequestHandler
32+
from urllib.parse import parse_qsl, urlsplit
3233

3334
import pytest
3435

3536
import botocore.auth
3637
from botocore.awsrequest import AWSRequest
37-
from botocore.compat import parse_qsl, urlsplit
3838
from botocore.credentials import Credentials
3939
from tests import FreezeTime
4040

Diff for: tests/unit/docs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
import os
1515
import shutil
1616
import tempfile
17+
from collections import OrderedDict
1718

1819
from botocore.client import ClientCreator
19-
from botocore.compat import OrderedDict
2020
from botocore.configprovider import ConfigValueStore
2121
from botocore.docs.bcdoc.restdoc import DocumentStructure
2222
from botocore.hooks import HierarchicalEmitter

Diff for: tests/unit/docs/test_sharedexample.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1111
# ANY KIND, either express or implied. See the License for the specific
1212
# language governing permissions and limitations under the License.
13-
from botocore.compat import OrderedDict
13+
from collections import OrderedDict
14+
1415
from botocore.docs.sharedexample import (
1516
SharedExampleDocumenter,
1617
document_shared_examples,

Diff for: tests/unit/test_credentials.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
1212
# ANY KIND, either express or implied. See the License for the specific
1313
# language governing permissions and limitations under the License.
14+
import json
1415
import os
1516
import shutil
1617
import subprocess
@@ -25,7 +26,6 @@
2526
import botocore.exceptions
2627
import botocore.session
2728
from botocore import credentials
28-
from botocore.compat import json
2929
from botocore.configprovider import ConfigValueStore
3030
from botocore.credentials import (
3131
AssumeRoleProvider,

Diff for: tests/unit/test_handlers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@
1717
import json
1818
import logging
1919
import os
20+
from collections import OrderedDict
21+
from urllib.parse import quote
2022

2123
import pytest
2224

2325
import botocore
2426
import botocore.session
2527
from botocore import handlers
2628
from botocore.awsrequest import AWSRequest
27-
from botocore.compat import OrderedDict, quote
2829
from botocore.config import Config
2930
from botocore.credentials import Credentials
3031
from botocore.docs.bcdoc.restdoc import DocumentStructure

Diff for: tests/unit/test_model.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
from collections import OrderedDict
2+
13
import pytest
24

35
from botocore import model
4-
from botocore.compat import OrderedDict
56
from tests import unittest
67

78

Diff for: tests/unit/test_protocols.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,18 @@
5252
"""
5353

5454
import copy
55+
import json
5556
import os
5657
from base64 import b64decode
5758
from calendar import timegm
59+
from collections import OrderedDict
5860
from enum import Enum
61+
from urllib.parse import urlsplit
5962

6063
import pytest
6164
from dateutil.tz import tzutc
6265

6366
from botocore.awsrequest import HeadersDict, prepare_request_dict
64-
from botocore.compat import OrderedDict, json, urlsplit
6567
from botocore.eventstream import EventStream
6668
from botocore.model import NoShapeFoundError, OperationModel, ServiceModel
6769
from botocore.parsers import (

Diff for: tests/unit/test_s3_addressing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
# language governing permissions and limitations under the License.
1515

1616
import os
17+
from collections import OrderedDict
1718

18-
from botocore.compat import OrderedDict
1919
from botocore.handlers import set_list_objects_encoding_type_url
2020
from tests import BaseSessionTest, ClientHTTPStubber
2121

Diff for: tests/unit/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import copy
1414
import datetime
1515
import io
16+
import json
1617
import operator
1718
from contextlib import contextmanager
1819
from sys import getrefcount
@@ -23,7 +24,6 @@
2324
import botocore
2425
from botocore import xform_name
2526
from botocore.awsrequest import AWSRequest, HeadersDict
26-
from botocore.compat import json
2727
from botocore.config import Config
2828
from botocore.endpoint_provider import RuleSetEndpoint
2929
from botocore.exceptions import (

0 commit comments

Comments
 (0)