From f4f51934efd6136203dc261b9ead782105a239b6 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 10 Jan 2018 13:16:41 -0500 Subject: [PATCH] Linter fixes for cloudfront storage --- storage/cloud.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/storage/cloud.py b/storage/cloud.py index e2f1c1171..a04f50ed6 100644 --- a/storage/cloud.py +++ b/storage/cloud.py @@ -619,7 +619,7 @@ class CloudFrontedS3Storage(S3Storage): return super(CloudFrontedS3Storage, self).get_direct_download_url(path, request_ip, expires_in, requires_cors, head) - + resolved_ip_info = None logger.debug('Got direct download request for path "%s" with IP "%s"', path, request_ip) if request_ip is not None: @@ -651,7 +651,7 @@ class CloudFrontedS3Storage(S3Storage): signer = private_key.signer(padding.PKCS1v15(), hashes.SHA1()) signer.update(message) return signer.finalize() - + return handler @lru_cache(maxsize=1) @@ -663,8 +663,8 @@ class CloudFrontedS3Storage(S3Storage): return None with self._context.config_provider.get_volume_file(cloudfront_privatekey_filename) as key_file: - return serialization.load_pem_private_key( - key_file.read(), - password=None, - backend=default_backend() - ) + return serialization.load_pem_private_key( + key_file.read(), + password=None, + backend=default_backend() + )