diff options
author | Skip Montanaro <skip@pobox.com> | 2002-08-02 17:20:46 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-08-02 17:20:46 (GMT) |
commit | de994d9130a4f1fddfc09195f79c2fde5ee5f884 (patch) | |
tree | 3fc760a706fdc8b3d519a62f2bc64b20959c69c3 /Doc | |
parent | 71ffc5cc4b0bb11a675ace2b4aa5ea1c08fd5438 (diff) | |
download | cpython-de994d9130a4f1fddfc09195f79c2fde5ee5f884.zip cpython-de994d9130a4f1fddfc09195f79c2fde5ee5f884.tar.gz cpython-de994d9130a4f1fddfc09195f79c2fde5ee5f884.tar.bz2 |
indicate that 'b' is added to the mode flag if not given
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libgzip.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/libgzip.tex b/Doc/lib/libgzip.tex index aab70a1..7a526b6 100644 --- a/Doc/lib/libgzip.tex +++ b/Doc/lib/libgzip.tex @@ -41,8 +41,8 @@ The \var{mode} argument can be any of \code{'r'}, \code{'rb'}, \code{'a'}, \code{'ab'}, \code{'w'}, or \code{'wb'}, depending on whether the file will be read or written. The default is the mode of \var{fileobj} if discernible; otherwise, the default is \code{'rb'}. -Be aware that only the \code{'rb'}, \code{'ab'}, and \code{'wb'} -values should be used for cross-platform portability. +If not given, the 'b' flag will be added to the mode to ensure the +file is opened in binary mode for cross-platform portability. The \var{compresslevel} argument is an integer from \code{1} to \code{9} controlling the level of compression; \code{1} is fastest and |