]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-28307: Tests and fixes for optimization of C-style formatting (GH-26318)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 23 May 2021 16:06:48 +0000 (19:06 +0300)
committerGitHub <noreply@github.com>
Sun, 23 May 2021 16:06:48 +0000 (19:06 +0300)
commit8b010673185d36d13e69e5bf7d902a0b3fa63051
tree0edd3dfd0d9ea213062c78f8eeb230f21af3c5c8
parentbd7476dae337e905e7b1bbf33ddb96cc270fdc84
bpo-28307: Tests and fixes for optimization of C-style formatting (GH-26318)

Fix errors:
* "%10.s" should be equal to "%10.0s", not "%10s".
* Tuples with starred expressions caused a SyntaxError.
Lib/test/test_peepholer.py
Python/ast_opt.c