]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40670: More reliable validation of statements in timeit.Timer. (GH-22358)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Sep 2020 13:16:46 +0000 (16:16 +0300)
committerGitHub <noreply@github.com>
Tue, 22 Sep 2020 13:16:46 +0000 (16:16 +0300)
commit557b9a52edc4445cec293f2cc2c268c4f564adcf
treedc197fd8a194d1eb5fb31eb6f12736efa09ff7e7
parentc5cb077ab3c88394b7ac8ed4e746bd31b53e39f1
bpo-40670: More reliable validation of statements in timeit.Timer. (GH-22358)

It now accepts "empty" statements (only whitespaces and comments)
and rejects misindentent statements.
Lib/test/test_timeit.py
Lib/timeit.py
Misc/NEWS.d/next/Library/2020-09-22-14-55-34.bpo-40670.R5sm68.rst [new file with mode: 0644]