Explorar o código

Merge pull request #40639 from KoBeWi/fix_emoji🎉🎉

Fix emoji branch compilation error
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
f5091681b4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      methods.py

+ 1 - 1
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):