Skip to content

Commit bdfb7c7

Browse files
committed
only import aiohttp when necessary
1 parent f49422f commit bdfb7c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/core/azure-core/azure/core/pipeline_client_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
from .pipeline import AsyncPipeline
4949
from .pipeline.transport.base import PipelineClientBase
5050
from .pipeline.policies import ContentDecodePolicy
51-
from .pipeline.transport import AioHttpTransport
5251
from .pipeline.policies.distributed_tracing import DistributedTracingPolicy
5352

5453

@@ -121,6 +120,7 @@ def _build_pipeline(self, config, **kwargs): # pylint: disable=no-self-use
121120
]
122121

123122
if not transport:
123+
from .pipeline.transport import AioHttpTransport
124124
transport = AioHttpTransport(**kwargs)
125125

126126
return AsyncPipeline(transport, policies)

0 commit comments

Comments
 (0)