STINNER Victor <vstin...@python.org> added the comment:
> 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". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43662> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com