]> granicus.if.org Git - python/commitdiff
Only document <file>.xreadlines() once; added version annotation.
authorFred Drake <fdrake@acm.org>
Sun, 22 Apr 2001 01:56:51 +0000 (01:56 +0000)
committerFred Drake <fdrake@acm.org>
Sun, 22 Apr 2001 01:56:51 +0000 (01:56 +0000)
This closes SF bug #417943.

Doc/lib/libstdtypes.tex

index fc17785a0eff9340da18bfe0e400efe473757c3b..62435fdcfdfea47459eec22f214c6229e6ec9a4d 100644 (file)
@@ -1192,7 +1192,10 @@ Files have the following methods:
 \end{methoddesc}
 
 \begin{methoddesc}[file]{xreadlines}{}
-  Equivalent to \function{xreadlines.xreadlines(file)}.\refstmodindex{xreadlines}
+  Equivalent to
+  \function{xreadlines.xreadlines(\var{file})}.\refstmodindex{xreadlines}
+  (See the \refmodule{xreadlines} module for more information.)
+  \versionadded{2.1}
 \end{methoddesc}
 
 \begin{methoddesc}[file]{seek}{offset\optional{, whence}}
@@ -1233,12 +1236,6 @@ Files have the following methods:
   \method{writelines()} does not add line separators.)
 \end{methoddesc}
 
-\begin{methoddesc}[file]{xreadlines}{}
-  Equivalent to
-  \function{xreadlines.xreadlines(\var{file})}.\refstmodindex{xreadlines}
-  (See the \refmodule{xreadlines} module for more information.)
-\end{methoddesc}
-
 
 File objects also offer a number of other interesting attributes.
 These are not required for file-like objects, but should be