Skip to content

Commit

Permalink
fixing version issue by not overwriting the version with the semantic… (
Browse files Browse the repository at this point in the history
#13411)

* fixing version issue by not overwriting the version with the semantic version

* removed VERSION imports
  • Loading branch information
seankane-msft committed Aug 31, 2020
1 parent eea845a commit 4f859ec
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
from ._serialize import serialize_iso
from ._deserialize import _return_headers_and_deserialized
from ._error import _process_table_error
from ._version import VERSION
from ._models import TableEntityPropertiesPaged, UpdateMode
from ._models import TableEntityPropertiesPaged, UpdateMode, TableItem


class TableClient(TableClientBase):
Expand Down Expand Up @@ -59,7 +58,6 @@ def __init__(
"""
super(TableClient, self).__init__(account_url, table_name, credential=credential, **kwargs)
self._client = AzureTable(self.url, pipeline=self._pipeline)
self._client._config.version = kwargs.get('api_version', VERSION) # pylint: disable=protected-access

@classmethod
def from_connection_string(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from ._base_client import parse_connection_str, TransportWrapper
from ._models import LocationMode
from ._error import _process_table_error
from ._version import VERSION
from ._table_client import TableClient
from ._table_service_client_base import TableServiceClientBase

Expand Down Expand Up @@ -47,7 +46,6 @@ def __init__(

super(TableServiceClient, self).__init__(account_url, service='table', credential=credential, **kwargs)
self._client = AzureTable(self.url, pipeline=self._pipeline)
self._client._config.version = kwargs.get('api_version', VERSION) # pylint: disable=protected-access

@classmethod
def from_connection_string(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from azure.core.tracing.decorator import distributed_trace
from azure.core.tracing.decorator_async import distributed_trace_async

from .. import VERSION
from .._base_client import parse_connection_str
from .._entity import TableEntity
from .._generated.aio import AzureTable
Expand Down Expand Up @@ -71,7 +70,6 @@ def __init__(
account_url, table_name=table_name, credential=credential, loop=loop, **kwargs
)
self._client = AzureTable(self.url, pipeline=self._pipeline, loop=loop)
self._client._config.version = kwargs.get('api_version', VERSION) # pylint: disable = W0212
self._loop = loop

@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from azure.core.tracing.decorator import distributed_trace
from azure.core.tracing.decorator_async import distributed_trace_async

from .. import VERSION, LocationMode
from .. import LocationMode
from .._base_client import parse_connection_str
from .._generated.aio._azure_table_async import AzureTable
from .._generated.models import TableServiceProperties, TableProperties, QueryOptions
Expand Down Expand Up @@ -84,7 +84,6 @@ def __init__(
loop=loop,
**kwargs)
self._client = AzureTable(url=self.url, pipeline=self._pipeline, loop=loop) # type: ignore
self._client._config.version = kwargs.get('api_version', VERSION) # pylint: disable=protected-access
self._loop = loop

@classmethod
Expand Down

0 comments on commit 4f859ec

Please sign in to comment.