|
12 | 12 | # language governing permissions and limitations under the License. |
13 | 13 | import logging |
14 | 14 |
|
15 | | -from botocore import waiter, xform_name |
| 15 | +from botocore import ( |
| 16 | + UNSIGNED, # noqa: F401 |
| 17 | + waiter, |
| 18 | + xform_name, |
| 19 | +) |
16 | 20 | from botocore.args import ClientArgsCreator |
17 | 21 | from botocore.auth import AUTH_TYPE_MAPS, resolve_auth_type |
18 | 22 | from botocore.awsrequest import prepare_request_dict |
|
27 | 31 | ) |
28 | 32 | from botocore.docs.docstring import ClientMethodDocstring, PaginatorDocstring |
29 | 33 | from botocore.exceptions import ( |
| 34 | + ClientError, # noqa: F401 |
30 | 35 | DataNotFoundError, |
31 | 36 | InvalidEndpointDiscoveryConfigurationError, |
32 | 37 | OperationNotPageableError, |
|
46 | 51 | from botocore.utils import ( |
47 | 52 | CachedProperty, |
48 | 53 | EventbridgeSignerSetter, |
| 54 | + S3ArnParamHandler, # noqa: F401 |
| 55 | + S3ControlArnParamHandler, # noqa: F401 |
49 | 56 | S3ControlArnParamHandlerv2, |
| 57 | + S3ControlEndpointSetter, # noqa: F401 |
| 58 | + S3EndpointSetter, # noqa: F401 |
50 | 59 | S3ExpressIdentityResolver, |
| 60 | + S3RegionRedirector, # noqa: F401 |
51 | 61 | S3RegionRedirectorv2, |
52 | 62 | ensure_boolean, |
53 | 63 | get_service_module_name, |
54 | 64 | ) |
55 | 65 |
|
56 | | -# Keep these imported. There's pre-existing code that uses: |
57 | | -# "from botocore.client import UNSIGNED" |
58 | | -# "from botocore.client import ClientError" |
59 | | -# etc. |
60 | | -from botocore.exceptions import ClientError # noqa |
61 | | -from botocore.utils import S3ArnParamHandler # noqa |
62 | | -from botocore.utils import S3ControlArnParamHandler # noqa |
63 | | -from botocore.utils import S3ControlEndpointSetter # noqa |
64 | | -from botocore.utils import S3EndpointSetter # noqa |
65 | | -from botocore.utils import S3RegionRedirector # noqa |
66 | | -from botocore import UNSIGNED # noqa |
67 | | - |
68 | | - |
69 | 66 | logger = logging.getLogger(__name__) |
70 | 67 | history_recorder = get_global_history_recorder() |
71 | 68 |
|
|
0 commit comments