diff options
author | Wolfgang Müller | 2024-09-21 13:34:53 +0200 |
---|---|---|
committer | Wolfgang Müller | 2024-09-21 13:34:53 +0200 |
commit | 8155db6fa1131895e001751a6aedb1bbfc821b59 (patch) | |
tree | 83e07426a9f97129b7438fb32a04d1d05c60055d | |
parent | 36998114fa17d481940bce277485b5fc8b6bd43a (diff) | |
download | later-8155db6fa1131895e001751a6aedb1bbfc821b59.tar.gz |
lint: open() defaults to read-only, so use that
-rwxr-xr-x | later | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |