[Scummvm-git-logs] scummvm master -> 2e633df0470161ed11c452c1705ea680be8c1a0c
digitall
noreply at scummvm.org
Wed Apr 20 00:51:46 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
2e633df047 TEST: Fix cxxtestgen.py crash in Python 3 when digesting punycode.h
Commit: 2e633df0470161ed11c452c1705ea680be8c1a0c
https://github.com/scummvm/scummvm/commit/2e633df0470161ed11c452c1705ea680be8c1a0c
Author: elasota (ejlasota at gmail.com)
Date: 2022-04-20T01:51:42+01:00
Commit Message:
TEST: Fix cxxtestgen.py crash in Python 3 when digesting punycode.h
Changed paths:
test/cxxtest/cxxtestgen.py
diff --git a/test/cxxtest/cxxtestgen.py b/test/cxxtest/cxxtestgen.py
index 8aa62004ce7..c557d6cfa8c 100755
--- a/test/cxxtest/cxxtestgen.py
+++ b/test/cxxtest/cxxtestgen.py
@@ -174,7 +174,11 @@ def scanInputFiles(files):
def scanInputFile(fileName):
'''Scan single input file for test suites'''
- file = open(fileName)
+ if sys.version_info.major >= 3:
+ file = open(fileName, encoding='utf-8')
+ else:
+ file = open(fileName)
+
lineNo = 0
while 1:
line = file.readline()
More information about the Scummvm-git-logs
mailing list