Skip to content

Commit

Permalink
Pin dependency packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dvershinin committed May 8, 2023
1 parent 069d269 commit 333ff84
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lastversion/ProjectHolder.py
Expand Up @@ -4,7 +4,6 @@
import os
import platform
import re
import io
import requests
from appdirs import user_cache_dir
from cachecontrol import CacheControlAdapter
Expand Down Expand Up @@ -108,7 +107,7 @@ def get_name_cache(self):
if not os.path.exists(self.names_cache_filename):
return {}
try:
with io.open(self.names_cache_filename, 'r', encoding='utf-8') as reader:
with open(self.names_cache_filename, 'r') as reader:
cache = json.load(reader)
return cache
except (IOError, ValueError) as e:
Expand All @@ -119,7 +118,7 @@ def update_name_cache(self, cache_data):
"""Update name cache file with new data."""
try:
ensure_directory_exists(self.cache_dir)
with io.open(self.names_cache_filename, 'w', encoding='utf-8') as writer:
with open(self.names_cache_filename, 'w') as writer:
json.dump(cache_data, writer)
except (IOError, ValueError) as e:
log.warning("Error writing to cache file: %s", e)
Expand Down

0 comments on commit 333ff84

Please sign in to comment.