summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2020-07-23 19:42:37 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2020-07-23 19:42:37 +0200
commit2407562366213b16f1242ab997827a9e45c76a25 (patch)
treed3550f4d1cdfca27c364bb24dd514911ade35b30
parentf4c17da6f5609aac353d166d2b7d7b98a5934aba (diff)
Fix emoji branch compilation error
-rw-r--r--methods.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods.py b/methods.py
index 7b853b7821..65a460f63d 100644
--- a/methods.py
+++ b/methods.py
@@ -92,7 +92,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):