Fixed linting errors.

This commit is contained in:
acsbendi 2019-07-13 14:58:42 +02:00
parent b0fbd834c0
commit de01adec57
3 changed files with 4 additions and 3 deletions

View File

@ -122,7 +122,9 @@ class CreateAccessKeyFailure(Exception):
class IAMRequestBase(ABC):
def __init__(self, method, path, data, headers):
print(f"Creating {self.__class__.__name__} with method={method}, path={path}, data={data}, headers={headers}", file=sys.stderr)
print("Creating {class_name} with method={method}, path={path}, data={data}, headers={headers}".format(
class_name=self.__class__.__name__, method=method, path=path, data=data, headers=headers),
file=sys.stderr)
self._method = method
self._path = path
self._data = data

View File

@ -104,4 +104,3 @@ class AuthFailureError(RESTError):
super(AuthFailureError, self).__init__(
'AuthFailure',
"AWS was not able to validate the provided access credentials")

View File

@ -219,7 +219,7 @@ class S3InvalidTokenError(S3ClientError):
code = 400
def __init__(self, *args, **kwargs):
super(S3InvalidTokenError, self).__init__('InvalidToken', 'The provided token is malformed or otherwise invalid.', *args, **kwargs)
super(S3InvalidTokenError, self).__init__('InvalidToken', 'The provided token is malformed or otherwise invalid.', *args, **kwargs)
class BucketInvalidTokenError(BucketError):