From f1ec3e97a9b1ace64c654a14604ff8f26e868038 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 5 Sep 2019 16:31:48 -0400 Subject: [PATCH] Fix i18n extract command. --- pavelib/prereqs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pavelib/prereqs.py b/pavelib/prereqs.py index 6446afb861..aca2b025a7 100644 --- a/pavelib/prereqs.py +++ b/pavelib/prereqs.py @@ -79,7 +79,7 @@ def compute_fingerprint(path_list): for dirname in sorted(os.listdir(path_item)): path_name = os.path.join(path_item, dirname) if os.path.isdir(path_name): - hasher.update(str(os.stat(path_name).st_mtime)) + hasher.update(str(os.stat(path_name).st_mtime).encode('utf-8')) # For files, hash the contents of the file if os.path.isfile(path_item): @@ -120,7 +120,7 @@ def prereq_cache(cache_name, paths, install_func): # Since the pip requirement files are modified during the install # process, we need to store the hash generated AFTER the installation post_install_hash = compute_fingerprint(paths) - cache_file.write(post_install_hash) + cache_file.write(post_install_hash.encode('utf-8')) else: print(u'{cache} unchanged, skipping...'.format(cache=cache_name))