Merge pull request #23202 from edx/aj/update-pavelib-prereqs

Fix Pavelib prereqs.
This commit is contained in:
Awais Jibran
2020-02-26 23:40:12 +05:00
committed by GitHub

View File

@@ -103,7 +103,7 @@ def prereq_cache(cache_name, paths, install_func):
cache_file_path = os.path.join(PREREQS_STATE_DIR, "{}.sha1".format(cache_filename))
old_hash = None
if os.path.isfile(cache_file_path):
with io.open(cache_file_path, "rb") as cache_file:
with io.open(cache_file_path, "r") as cache_file:
old_hash = cache_file.read()
# Compare the old hash to the new hash