summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2021-02-08 09:15:34 +0000
committerVincent Sanders <vince@kyllikki.org>2021-02-08 09:15:34 +0000
commit0ed395f733752fb58a77c7cc20922dedba2944f2 (patch)
treed0f7e303deda6d1970866b1d15e1b34e2d9090e4
parent37e0afc97d64c0c73fa38c06dadf7de4659147be (diff)
downloadnetsurf-test-0ed395f733752fb58a77c7cc20922dedba2944f2.tar.gz
netsurf-test-0ed395f733752fb58a77c7cc20922dedba2944f2.tar.bz2
open source taml files as utf-8 encoded text
-rwxr-xr-xcgi-bin/monkey-index.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi-bin/monkey-index.cgi b/cgi-bin/monkey-index.cgi
index 4ae41f6..3ccb313 100755
--- a/cgi-bin/monkey-index.cgi
+++ b/cgi-bin/monkey-index.cgi
@@ -48,7 +48,7 @@ def main():
# load all test plan yaml files
for fname in sorted(flist):
- with open(os.path.join(testroot, fname), "r") as file_handle:
+ with open(os.path.join(testroot, fname), "rt", encoding='utf8') as file_handle:
files[fname] = yaml.load(file_handle, Loader=yaml.CSafeLoader)
if division + '/index.yaml' not in files: