https://github.com/python/cpython/commit/9316e4bb7eb39738930870d6526096a63070cc45 commit: 9316e4bb7eb39738930870d6526096a63070cc45 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2025-12-27T07:58:01Z summary:
[3.14] Fix typos in docs (GH-143193) (#143207) Fix typos in docs (GH-143193) (cherry picked from commit 57d569942c6becad85919e3b7fef5f6136c413b0) Co-authored-by: SYan212 <[email protected]> files: M Doc/library/linecache.rst M Doc/tools/extensions/grammar_snippet.py diff --git a/Doc/library/linecache.rst b/Doc/library/linecache.rst index e766a9280946d3..07305a2a39b252 100644 --- a/Doc/library/linecache.rst +++ b/Doc/library/linecache.rst @@ -31,7 +31,7 @@ The :mod:`linecache` module defines the following functions: .. index:: triple: module; search; path If *filename* indicates a frozen module (starting with ``'<frozen '``), the function - will attepmt to get the real file name from ``module_globals['__file__']`` if + will attempt to get the real file name from ``module_globals['__file__']`` if *module_globals* is not ``None``. If a file named *filename* is not found, the function first checks diff --git a/Doc/tools/extensions/grammar_snippet.py b/Doc/tools/extensions/grammar_snippet.py index 1e059f111e4091..8078b7ebeb8076 100644 --- a/Doc/tools/extensions/grammar_snippet.py +++ b/Doc/tools/extensions/grammar_snippet.py @@ -191,7 +191,7 @@ class GrammarSnippetDirective(GrammarSnippetBase): into something similar to Sphinx productionlist, but better suited for our needs: - Instead of `::=`, use a colon, as in `Grammar/python.gram` - - Show the listing almost as is, with no auto-aligment. + - Show the listing almost as is, with no auto-alignment. The only special character is the backtick, which marks tokens. Unlike Sphinx's productionlist, this directive supports options. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
