Closed UnBeatWaterGH closed 4 weeks ago
That is supposed to be keyvalues, yes, but I've had issues in the past with Valve just using invalid syntax in localisation files. Okay, looks like this starts using a bunch of control characters at about line 500, must be confusing my code.
As a workaround, you could do sys.modules['srctools._tokenizer'] = None
before importing to disable the Cython-accelerated parser. The pure-Python version doesn't have the issue, but is much slower.
This is on the latest pip version. If I try to parse TF2's
tf_english.txt
file I get a weird error: