Anonymous
-
2021-08-31
Post awaiting moderation.
For input file reading the open function is called with "rb" flags.
Reading and comparing fails then in __skip_whitespace
while tmp in [' ', '\t', '\n', '\r']:
tmp = FH.read(1)
In __getnexttoken the byte read is converted like this:
tmp = FH.read(1).decode("utf8")
and the comparison gives the right result.
Anonymous