python: Reformat with Black, except quotes.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-11 23:19:30 -08:00
committed by Tim Abbott
parent 5028c081cb
commit 11741543da
817 changed files with 44952 additions and 24860 deletions

View File

@@ -51,8 +51,7 @@ request = {
'anchor': 0,
'num_before': 0,
'num_after': max_id,
'narrow': [{'operator': 'stream',
'operand': options.stream}],
'narrow': [{'operator': 'stream', 'operand': options.stream}],
'apply_markdown': False,
}
@@ -71,9 +70,18 @@ for msg in result['messages']:
if msg['type'] != 'stream':
continue
# Remove extraneous metadata
for k in ['flags', 'edit_history', 'topic_links',
'avatar_url', 'recipient_id',
'content_type', 'client', 'sender_realm_str', 'id', 'type']:
for k in [
'flags',
'edit_history',
'topic_links',
'avatar_url',
'recipient_id',
'content_type',
'client',
'sender_realm_str',
'id',
'type',
]:
msg.pop(k, None)
messages.append(msg)