ruff: Fix UP015 Unnecessary open mode parameters.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-12-03 23:54:25 -08:00 committed by Tim Abbott
parent f3f5dfb5aa
commit 9a89a52086
1 changed files with 1 additions and 1 deletions

View File

@ -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"])