python: Rewrite dict() as {}.

Suggested by the flake8-comprehensions plugin.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-09-01 23:14:51 -07:00
committed by Tim Abbott
parent a610bd19a1
commit a276eefcfe
46 changed files with 79 additions and 79 deletions

View File

@@ -125,7 +125,7 @@ class EmbeddedBotHandler:
return get_bot_config(self.user_profile)
except ConfigError:
if optional:
return dict()
return {}
raise
def quit(self, message: str= "") -> None: