mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
python: Whitespace fixes from autopep8.
Generated by autopep8. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -71,7 +71,7 @@ class APIReturnValuesTablePreprocessor(Preprocessor):
|
|||||||
ans += self.render_table(return_values[return_value]['additionalProperties']
|
ans += self.render_table(return_values[return_value]['additionalProperties']
|
||||||
['properties'], spacing + 8)
|
['properties'], spacing + 8)
|
||||||
if ('items' in return_values[return_value] and
|
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)
|
ans += self.render_table(return_values[return_value]['items']['properties'], spacing + 4)
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
|||||||
@@ -629,7 +629,7 @@ class S3UploadBackend(ZulipUploadBackend):
|
|||||||
# We use the avatar bucket, because it's world-readable.
|
# We use the avatar bucket, because it's world-readable.
|
||||||
bucket = get_bucket(session, settings.S3_AVATAR_BUCKET)
|
bucket = get_bucket(session, settings.S3_AVATAR_BUCKET)
|
||||||
key = bucket.Object(os.path.join("exports", generate_random_token(32),
|
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)
|
key.upload_file(tarball_path, Callback=percent_callback)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user