diff options
| author | 2024-06-22 21:19:36 -0400 | |
|---|---|---|
| committer | 2024-06-22 21:19:36 -0400 | |
| commit | 80e39a8fc7de105510cbbdca8507f2a4b8c9e01d (patch) | |
| tree | bb5caa2f5fafc5116b8f89e659085ffbd8a918f2 /gallery_dl/cookies.py | |
| parent | 1c28712d865e30ed752988ba0b6944882250b665 (diff) | |
New upstream version 1.27.1.upstream/1.27.1
Diffstat (limited to 'gallery_dl/cookies.py')
| -rw-r--r-- | gallery_dl/cookies.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gallery_dl/cookies.py b/gallery_dl/cookies.py index b4986c1..47f78a7 100644 --- a/gallery_dl/cookies.py +++ b/gallery_dl/cookies.py @@ -188,8 +188,8 @@ def _firefox_cookies_database(profile=None, container=None): os.path.dirname(path), "containers.json") try: - with open(containers_path) as file: - identities = util.json_loads(file.read())["identities"] + with open(containers_path) as fp: + identities = util.json_loads(fp.read())["identities"] except OSError: _log_error("Unable to read Firefox container database at '%s'", containers_path) @@ -745,8 +745,8 @@ def _get_windows_v10_key(browser_root): _log_error("Unable to find Local State file") return None _log_debug("Found Local State file at '%s'", path) - with open(path, encoding="utf-8") as file: - data = util.json_loads(file.read()) + with open(path, encoding="utf-8") as fp: + data = util.json_loads(fp.read()) try: base64_key = data["os_crypt"]["encrypted_key"] except KeyError: |
