python: Whitespace fixes from autopep8.

Generated by autopep8.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-06-08 15:21:30 -07:00
parent 549fbeac72
commit 444fbbf964
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class APIReturnValuesTablePreprocessor(Preprocessor):
ans += self.render_table(return_values[return_value]['additionalProperties']
['properties'], spacing + 8)
if ('items' in return_values[return_value] and
'properties' in return_values[return_value]['items']):
'properties' in return_values[return_value]['items']):
ans += self.render_table(return_values[return_value]['items']['properties'], spacing + 4)
return ans

View File

@ -629,7 +629,7 @@ class S3UploadBackend(ZulipUploadBackend):
# We use the avatar bucket, because it's world-readable.
bucket = get_bucket(session, settings.S3_AVATAR_BUCKET)
key = bucket.Object(os.path.join("exports", generate_random_token(32),
os.path.basename(tarball_path)))
os.path.basename(tarball_path)))
key.upload_file(tarball_path, Callback=percent_callback)