diff --git a/ibm_cloud_sdk_core/api_exception.py b/ibm_cloud_sdk_core/api_exception.py index 307e7fb..aa99445 100644 --- a/ibm_cloud_sdk_core/api_exception.py +++ b/ibm_cloud_sdk_core/api_exception.py @@ -35,7 +35,7 @@ class ApiException(Exception): def __init__(self, code: int, *, message: Optional[str] = None, http_response: Optional[Response] = None): # Call the base class constructor with the parameters it needs - super(ApiException, self).__init__(message) + super().__init__(message) self.message = message self.code = code self.http_response = http_response diff --git a/ibm_cloud_sdk_core/cp4d_token_manager.py b/ibm_cloud_sdk_core/cp4d_token_manager.py index acf2c5d..2902790 100644 --- a/ibm_cloud_sdk_core/cp4d_token_manager.py +++ b/ibm_cloud_sdk_core/cp4d_token_manager.py @@ -62,8 +62,8 @@ def __init__(self, url = url + '/v1/preauth/validateAuth' self.headers = headers self.proxies = proxies - super(CP4DTokenManager, self).__init__(url, disable_ssl_verification=disable_ssl_verification, - token_name=self.TOKEN_NAME) + super().__init__(url, disable_ssl_verification=disable_ssl_verification, + token_name=self.TOKEN_NAME) def request_token(self) -> dict: """Makes a request for a token. diff --git a/ibm_cloud_sdk_core/iam_token_manager.py b/ibm_cloud_sdk_core/iam_token_manager.py index 568752f..913ae4f 100644 --- a/ibm_cloud_sdk_core/iam_token_manager.py +++ b/ibm_cloud_sdk_core/iam_token_manager.py @@ -76,7 +76,7 @@ def __init__(self, self.client_secret = client_secret self.headers = headers self.proxies = proxies - super(IAMTokenManager, self).__init__( + super().__init__( self.url, disable_ssl_verification=disable_ssl_verification, token_name=self.TOKEN_NAME) def request_token(self) -> dict: diff --git a/test/test_jwt_token_manager.py b/test/test_jwt_token_manager.py index 7f3489d..32093ed 100644 --- a/test/test_jwt_token_manager.py +++ b/test/test_jwt_token_manager.py @@ -11,8 +11,8 @@ def __init__(self, url=None, access_token=None): self.url = url self.access_token = access_token self.request_count = 0 # just for tests to see how many times request was called - super(JWTTokenManagerMockImpl, self).__init__(url, disable_ssl_verification=access_token, - token_name='access_token') + super().__init__(url, disable_ssl_verification=access_token, + token_name='access_token') def request_token(self): self.request_count += 1