diff options
Diffstat (limited to 'Doc/library/fileinput.rst')
-rw-r--r-- | Doc/library/fileinput.rst | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst index d45def1..ba7e980 100644 --- a/Doc/library/fileinput.rst +++ b/Doc/library/fileinput.rst @@ -53,8 +53,6 @@ The following function is the primary interface of this module: during iteration. The parameters to this function will be passed along to the constructor of the :class:`FileInput` class. - .. versionchanged:: 2.5 - Added the *mode* and *openhook* parameters. The following functions use the global state created by :func:`fileinput.input`; if there is no active state, :exc:`RuntimeError` is raised. @@ -71,8 +69,6 @@ if there is no active state, :exc:`RuntimeError` is raised. Return the integer "file descriptor" for the current file. When no file is opened (before the first line and between files), returns ``-1``. - .. versionadded:: 2.5 - .. function:: lineno() @@ -135,8 +131,6 @@ available for subclassing as well: *filename* and *mode*, and returns an accordingly opened file-like object. You cannot use *inplace* and *openhook* together. - .. versionchanged:: 2.5 - Added the *mode* and *openhook* parameters. **Optional in-place filtering:** if the keyword argument ``inplace=1`` is passed to :func:`fileinput.input` or to the :class:`FileInput` constructor, the file is @@ -165,8 +159,6 @@ The two following opening hooks are provided by this module: Usage example: ``fi = fileinput.FileInput(openhook=fileinput.hook_compressed)`` - .. versionadded:: 2.5 - .. function:: hook_encoded(encoding) @@ -181,5 +173,3 @@ The two following opening hooks are provided by this module: With this hook, :class:`FileInput` might return Unicode strings depending on the specified *encoding*. - .. versionadded:: 2.5 - |