From b7ab13998ee2d927c7c7a0c08bc92c8ae03b5c11 Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Fri, 8 Mar 2019 20:42:38 -0800 Subject: [PATCH] consistent typing --- pub.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pub.py b/pub.py index cf29327..4401152 100755 --- a/pub.py +++ b/pub.py @@ -40,7 +40,7 @@ def upload_file(filename, overwrite=True): s3.upload_file(filename, BUCKET, filename, ExtraArgs={ 'ACL': 'public-read', 'ContentType': TYPE_MAP[ext], - 'CacheControl': 'public, max-age={}'.format('31536000' if ext in ['gif', 'jpg', 'png', 'webp'] else 86400) + 'CacheControl': 'public, max-age={}'.format(31536000 if ext in ['gif', 'jpg', 'png', 'webp'] else 86400) }) if (ext == 'html'): @@ -48,7 +48,7 @@ def upload_file(filename, overwrite=True): s3.upload_file(filename, BUCKET, filename[:-5], ExtraArgs={ 'ACL': 'public-read', 'ContentType': TYPE_MAP[ext], - 'CacheControl': 'public, max-age={}'.format('31536000' if ext in ['gif', 'jpg', 'png', 'webp'] else 86400) + 'CacheControl': 'public, max-age={}'.format(31536000 if ext in ['gif', 'jpg', 'png', 'webp'] else 86400) }) print('\tDone.')