[Python-checkins] r42496 - python/trunk/Doc/lib/libfileinput.tex
georg.brandl
python-checkins at python.org
Sun Feb 19 16:20:33 CET 2006
Author: georg.brandl
Date: Sun Feb 19 16:20:29 2006
New Revision: 42496
Modified:
python/trunk/Doc/lib/libfileinput.tex
Log:
Clarify how hook_compressed determines how to open a file.
Modified: python/trunk/Doc/lib/libfileinput.tex
==============================================================================
--- python/trunk/Doc/lib/libfileinput.tex (original)
+++ python/trunk/Doc/lib/libfileinput.tex Sun Feb 19 16:20:29 2006
@@ -165,8 +165,9 @@
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)}
More information about the Python-checkins
mailing list