From: Benjamin Peterson Date: Sun, 6 Sep 2020 03:54:46 +0000 (-0500) Subject: [3.9] closes bpo-41723: Fix an error in the py_compile documentation. (GH-22118) X-Git-Tag: v3.9.0rc2~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6d2acb1b1a21f857c17cfb6e0e97a7b8bdc0171;p=thirdparty%2FPython%2Fcpython.git [3.9] closes bpo-41723: Fix an error in the py_compile documentation. (GH-22118) (cherry picked from commit 5371a46) Co-authored-by: Zackery Spytz --- diff --git a/Doc/library/py_compile.rst b/Doc/library/py_compile.rst index a12a5bb0b1aa..cac6dcb63e7f 100644 --- a/Doc/library/py_compile.rst +++ b/Doc/library/py_compile.rst @@ -35,7 +35,7 @@ byte-code cache files in the directory containing the source code. in ``.pyc``. For example, if *file* is ``/foo/bar/baz.py`` *cfile* will default to ``/foo/bar/__pycache__/baz.cpython-32.pyc`` for Python 3.2. If *dfile* is - specified, it is used as the name of the source file in error messages when + specified, it is used as the name of the source file in error messages instead of *file*. If *doraise* is true, a :exc:`PyCompileError` is raised when an error is encountered while compiling *file*. If *doraise* is false (the default), an error string is written to ``sys.stderr``, but no exception