]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137308: Replace a single docstring with `pass` in `-OO` mode (#137318)
authorsobolevn <mail@sobolevn.me>
Sat, 2 Aug 2025 11:57:01 +0000 (14:57 +0300)
committerGitHub <noreply@github.com>
Sat, 2 Aug 2025 11:57:01 +0000 (11:57 +0000)
commitb74f3bed51378896f2c7c720e505e87373e68c79
treecea76f2d19b988076167b9fb17a01f6b23cab4ff
parentfe0e921817a7f96c62c91085884ab910859328ce
gh-137308: Replace a single docstring with `pass` in `-OO` mode (#137318)

This is required so we would never have empty node bodies.
Refs #130087
Lib/test/test_ast/test_ast.py
Misc/NEWS.d/next/Core_and_Builtins/2025-08-02-10-27-53.gh-issue-137308.at05p_.rst [new file with mode: 0644]
Python/ast_preprocess.c