diff --git a/scripts/upload_static_files_to_s3.py b/scripts/upload_static_files_to_s3.py index a61da18ef..7b2cc2a9d 100755 --- a/scripts/upload_static_files_to_s3.py +++ b/scripts/upload_static_files_to_s3.py @@ -47,9 +47,7 @@ def upload(config_file): bucket = s3.get_bucket(bucket_name) # build a list of files already in the bucket - remote_files = {} - for key in bucket.list(): - remote_files[key.name] = key.etag.strip('"') + remote_files = {key.name : key.etag.strip('"') for key in bucket.list()} # upload local files not already in the bucket for root, dirs, files in os.walk(static_root):