[Python-checkins] Fix small mistake in fileinput documentation (GH-28241)

serhiy-storchaka webhook-mailer at python.org
Thu Sep 9 04:01:27 EDT 2021


https://github.com/python/cpython/commit/5afb570d2e21d4c4e91802c4948569302f9c1a7b
commit: 5afb570d2e21d4c4e91802c4948569302f9c1a7b
branch: main
author: Jean-Abou-Samra <37271310+Jean-Abou-Samra at users.noreply.github.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2021-09-09T11:01:10+03:00
summary:

Fix small mistake in fileinput documentation (GH-28241)

files:
M Doc/library/fileinput.rst

diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst
index 731c3d0c99a8c..ae31341a9e63e 100644
--- a/Doc/library/fileinput.rst
+++ b/Doc/library/fileinput.rst
@@ -51,7 +51,7 @@ You can control how files are opened by providing an opening hook via the
 hook must be a function that takes two arguments, *filename* and *mode*, and
 returns an accordingly opened file-like object. If *encoding* and/or *errors*
 are specified, they will be passed to the hook as aditional keyword arguments.
-This module provides a :func:`hook_encoded` to support compressed files.
+This module provides a :func:`hook_compressed` to support compressed files.
 
 The following function is the primary interface of this module:
 



More information about the Python-checkins mailing list