mirror of https://github.com/zulip/zulip.git
ruff: Fix UP015 Unnecessary open mode parameters.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f3f5dfb5aa
commit
9a89a52086
|
@ -73,7 +73,7 @@ This is most often used for legal compliance.
|
||||||
def handle(self, *args: Any, **options: Any) -> None:
|
def handle(self, *args: Any, **options: Any) -> None:
|
||||||
terms = set()
|
terms = set()
|
||||||
if options["file"]:
|
if options["file"]:
|
||||||
with open(options["file"], "r") as f:
|
with open(options["file"]) as f:
|
||||||
terms.update(f.read().splitlines())
|
terms.update(f.read().splitlines())
|
||||||
terms.update(options["search_terms"])
|
terms.update(options["search_terms"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue