Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

ruff: Fix UP015 Unnecessary open mode parameters.

Anders Kaseorg9a89a52086b4
diff --git a/zerver/management/commands/export_search.py b/zerver/management/commands/export_search.py
index 9116cae1765..07c5c50f7c9 100644
--- a/zerver/management/commands/export_search.py
+++ b/zerver/management/commands/export_search.py
@@ -73,7 +73,7 @@ This is most often used for legal compliance.
def handle(self, *args: Any, **options: Any) -> None:
terms = set()
if options["file"]:
- with open(options["file"], "r") as f:
+ with open(options["file"]) as f:
terms.update(f.read().splitlines())
terms.update(options["search_terms"])