From 8155db6fa1131895e001751a6aedb1bbfc821b59 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sat, 21 Sep 2024 13:34:53 +0200 Subject: lint: open() defaults to read-only, so use that --- later | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/later b/later index 8a5c686..a6ad804 100755 --- a/later +++ b/later @@ -66,7 +66,7 @@ class TitleMap: self.ytdl = None try: - with open(path, "r") as handle: + with open(path) as handle: self.map = json.load(handle) except FileNotFoundError: pass @@ -134,7 +134,7 @@ def entries(): mtime = dt.fromtimestamp(get_mtime(entry)) - with open(entry.path, "r") as handle: + with open(entry.path) as handle: first = handle.readline().rstrip() name = entry.name -- cgit v1.2.3-2-gb3c3