aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorWolfgang Müller2024-09-21 13:34:53 +0200
committerWolfgang Müller2024-09-21 13:34:53 +0200
commit8155db6fa1131895e001751a6aedb1bbfc821b59 (patch)
tree83e07426a9f97129b7438fb32a04d1d05c60055d
parent36998114fa17d481940bce277485b5fc8b6bd43a (diff)
downloadlater-8155db6fa1131895e001751a6aedb1bbfc821b59.tar.gz
lint: open() defaults to read-only, so use that
Diffstat (limited to '')
-rwxr-xr-xlater4
1 files 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