mirror of
https://github.com/python/cpython.git
synced 2026-07-06 01:39:24 -04:00
8bc356a7dd
This makes tokenizer.c:valid_utf8 match stringlib/codecs.h:decode_utf8. It also fixes an off-by-one error introduced in 3.10 for the line number when the tokenizer reports bad UTF8.