From 7e1312055bcb6a65f934728e29291ae00a1d1a19 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Thu, 23 Jul 2020 19:42:37 +0200 Subject: [PATCH] Fix emoji branch compilation error (cherry picked from commit 2407562366213b16f1242ab997827a9e45c76a25) --- methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods.py b/methods.py index 1d60884a816..98ff0f32606 100644 --- a/methods.py +++ b/methods.py @@ -86,7 +86,7 @@ def update_version(module_version_string=""): gitfolder = module_folder[8:] if os.path.isfile(os.path.join(gitfolder, "HEAD")): - head = open(os.path.join(gitfolder, "HEAD"), "r").readline().strip() + head = open(os.path.join(gitfolder, "HEAD"), "r", encoding="utf8").readline().strip() if head.startswith("ref: "): head = os.path.join(gitfolder, head[5:]) if os.path.isfile(head):