Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions sdk/core/azure-core/azure/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,22 @@
#
# --------------------------------------------------------------------------

import os
from ._version import VERSION
__version__ = VERSION

from ._pipeline_client import PipelineClient
from ._match_conditions import MatchConditions
if not os.environ.get('AZURE_PURE_CORE', None) == 'True':
from .pipeline_client import PipelineClient
from .match_conditions import MatchConditions


__all__ = [
"PipelineClient",
"MatchConditions"
]
__all__ = [
"PipelineClient",
"MatchConditions"
]

try:
from ._pipeline_client_async import AsyncPipelineClient #pylint: disable=unused-import
__all__.extend(["AsyncPipelineClient"])
except (ImportError, SyntaxError): # Python <= 3.5
pass
try:
from .pipeline_client_async import AsyncPipelineClient #pylint: disable=unused-import
__all__.extend(["AsyncPipelineClient"])
except (ImportError, SyntaxError): # Python <= 3.5
pass