From 9f456e28b7052b6b3f033ee95e7bc7833da980bf Mon Sep 17 00:00:00 2001 From: Awais Jibran Date: Wed, 26 Feb 2020 12:18:39 +0500 Subject: [PATCH] Fix Pavelib prereqs. Do not read file as bytes, as it would fail the comparison of byte with str. PROD-1322 --- pavelib/prereqs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pavelib/prereqs.py b/pavelib/prereqs.py index c4bd2fb0fb..5141456c32 100644 --- a/pavelib/prereqs.py +++ b/pavelib/prereqs.py @@ -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