diff Doc/lib/libfileinput.tex @ 36597:38f4b098ea69 legacy-trunk

Clarify how hook_compressed determines how to open a file.
author Georg Brandl <georg@python.org>
date Sun, 19 Feb 2006 15:20:29 +0000
parents e57377f0a167
children 946cf6d58fd1
line wrap: on
line diff
--- a/Doc/lib/libfileinput.tex	Sun Feb 19 14:57:47 2006 +0000
+++ b/Doc/lib/libfileinput.tex	Sun Feb 19 15:20:29 2006 +0000
@@ -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)}