mirror of https://github.com/zulip/zulip.git
python: Whitespace fixes from autopep8.
Generated by autopep8. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
549fbeac72
commit
444fbbf964
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue