Message389751
> SyntaxError: encoding problem: encoding
This "encoding problem: %s" error message comes from check_coding_spec() of Parser/tokenizer.c. The "%s" argument is the cs variable which is initialized by get_coding_spec().
test_tools.test_reindent_file_with_bad_encoding() uses Lib/test/bad_coding.py which contains a single line:
# -*- coding: uft-8 -*-
The expected encoding name is "uft-8", not "encoding". |
|
Date |
User |
Action |
Args |
2021-03-29 20:56:29 | vstinner | set | recipients:
+ vstinner, methane, pablogsal |
2021-03-29 20:56:29 | vstinner | set | messageid: <1617051389.41.0.227144307155.issue43662@roundup.psfhosted.org> |
2021-03-29 20:56:29 | vstinner | link | issue43662 messages |
2021-03-29 20:56:29 | vstinner | create | |
|