use 'utf-8' reading 'CMDTEST_*.py'

This commit is contained in:
Johan Holmberg 2015-06-15 21:48:52 +02:00
parent bce88a3741
commit 4805d50e05

View File

@ -473,7 +473,7 @@ class Tclass:
class Tfile:
def __init__(self, filename):
try:
with open(filename) as f:
with open(filename, encoding='utf-8') as f:
co = compile(f.read(), filename, "exec")
except IOError as e:
print("cmdtest: error: failed to read %s" % filename,