fix failing Python2 tests with utf-8 encoding
This commit is contained in:
parent
07ddf8de45
commit
fa0c0b665e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue