fix failing Python2 tests with utf-8 encoding

This commit is contained in:
Eric Vergnaud 2020-10-11 09:52:40 +08:00
parent 07ddf8de45
commit fa0c0b665e
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ import sys
class InputStream (object):
def __init__(self, data, encoding = "utf-8"):
def __init__(self, data, encoding = "ascii"):
self.name = "<empty>"
self.strdata = unicode(data, encoding) if encoding != "utf-8" else data
self._loadString()