Skip to content

Commit

Permalink
Clarify how hook_compressed determines how to open a file.
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Feb 19, 2006
1 parent c98eeed commit c3e950c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Doc/lib/libfileinput.tex
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ \section{\module{fileinput} ---
The two following opening hooks are provided by this module:

\begin{funcdesc}{hook_compressed}{filename, mode}
Transparently opens files compressed with gzip and bzip2 using
the \module{gzip} and \module{bz2} modules.
Transparently opens files compressed with gzip and bzip2 (recognized
by the extensions \code{'.gz'} and \code{'.bz2'}) using the \module{gzip}
and \module{bz2} modules as well as normal files.

Usage example:
\samp{fi = fileinput.FileInput(openhook=fileinput.hook_compressed)}
Expand Down

0 comments on commit c3e950c

Please sign in to comment.