Kaydet (Commit) 97c5fccd authored tarafından Guido van Rossum's avatar Guido van Rossum

Remove mention of deprecated xreadlines method.

üst d79f6837
...@@ -21,8 +21,8 @@ The module defines the following items: ...@@ -21,8 +21,8 @@ The module defines the following items:
\begin{classdesc}{GzipFile}{\optional{filename\optional{, mode\optional{, \begin{classdesc}{GzipFile}{\optional{filename\optional{, mode\optional{,
compresslevel\optional{, fileobj}}}}} compresslevel\optional{, fileobj}}}}}
Constructor for the \class{GzipFile} class, which simulates most of Constructor for the \class{GzipFile} class, which simulates most of
the methods of a file object, with the exception of the \method{readinto()}, the methods of a file object, with the exception of the \method{readinto()}
\method{truncate()}, and \method{xreadlines()} methods. At least one of and \method{truncate()} methods. At least one of
\var{fileobj} and \var{filename} must be given a non-trivial value. \var{fileobj} and \var{filename} must be given a non-trivial value.
The new class instance is based on \var{fileobj}, which can be a The new class instance is based on \var{fileobj}, which can be a
......
...@@ -37,7 +37,7 @@ def open(filename, mode="rb", compresslevel=9): ...@@ -37,7 +37,7 @@ def open(filename, mode="rb", compresslevel=9):
class GzipFile: class GzipFile:
"""The GzipFile class simulates most of the methods of a file object with """The GzipFile class simulates most of the methods of a file object with
the exception of the readinto(), truncate(), and xreadlines() methods. the exception of the readinto() and truncate() methods.
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment