Skip to content

Commit f4b37a1

Browse files
committed
ensure classes are inheriting from object so they can be official types.
1 parent d100639 commit f4b37a1

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

vsts/vsts/exceptions.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55

6-
from .models.wrapped_exception import WrappedException
76
from msrest.exceptions import (
87
ClientException,
9-
SerializationError,
10-
DeserializationError,
118
TokenExpiredError,
129
ClientRequestError,
1310
AuthenticationError,
14-
HttpOperationError,
15-
ValidationError,
1611
)
1712

1813

@@ -36,7 +31,8 @@ def __init__(self, wrapped_exception):
3631
self.inner_exception = None
3732
if wrapped_exception.inner_exception is not None:
3833
self.inner_exception = VstsServiceError(wrapped_exception.inner_exception)
39-
super(VstsServiceError, self).__init__(message=wrapped_exception.message, inner_exception=self.inner_exception)
34+
super(VstsServiceError, self).__init__(message=wrapped_exception.message,
35+
inner_exception=self.inner_exception)
4036
self.message = wrapped_exception.message
4137
self.exception_id = wrapped_exception.exception_id
4238
self.type_name = wrapped_exception.type_name

vsts/vsts/git/v4_0/git_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class GitClient(GitClientBase):
1818
"""
1919

2020
def __init__(self, base_url=None, creds=None):
21-
GitClientBase.__init__(self, base_url, creds)
21+
super(GitClient, self).__init__(base_url, creds)
2222

2323
def get_vsts_info(self, relative_remote_url):
2424
request = ClientRequest()

vsts/vsts/vss_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from ._file_cache import OPTIONS_CACHE as OPTIONS_FILE_CACHE
2121

2222

23-
class VssClient:
23+
class VssClient(object):
2424
"""VssClient.
2525
:param str base_url: Service URL
2626
:param Authentication creds: Authenticated credentials.

vsts/vsts/vss_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .vss_client_configuration import VssClientConfiguration
1313

1414

15-
class VssConnection:
15+
class VssConnection(object):
1616
"""VssConnection.
1717
"""
1818

0 commit comments

Comments
 (0)