From de01adec57b70762a99dceeefbfedce653df61a3 Mon Sep 17 00:00:00 2001 From: acsbendi Date: Sat, 13 Jul 2019 14:58:42 +0200 Subject: [PATCH] Fixed linting errors. --- moto/core/authentication.py | 4 +++- moto/core/exceptions.py | 1 - moto/s3/exceptions.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/moto/core/authentication.py b/moto/core/authentication.py index 3e2d9e516..324f8db2a 100644 --- a/moto/core/authentication.py +++ b/moto/core/authentication.py @@ -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 diff --git a/moto/core/exceptions.py b/moto/core/exceptions.py index 58db5ed78..fcb1a0953 100644 --- a/moto/core/exceptions.py +++ b/moto/core/exceptions.py @@ -104,4 +104,3 @@ class AuthFailureError(RESTError): super(AuthFailureError, self).__init__( 'AuthFailure', "AWS was not able to validate the provided access credentials") - diff --git a/moto/s3/exceptions.py b/moto/s3/exceptions.py index 579d95148..c175d5066 100644 --- a/moto/s3/exceptions.py +++ b/moto/s3/exceptions.py @@ -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):