diff Doc/lib/librobotparser.tex @ 22835:73d145bfd8e4 legacy-trunk

Update doc to reflect Tim's changes to bool.
author Neal Norwitz <nnorwitz@gmail.com>
date Fri, 05 Apr 2002 02:21:09 +0000
parents 316fffd80b16
children bf00b56c14a9
line wrap: on
line diff
--- a/Doc/lib/librobotparser.tex	Thu Apr 04 23:44:47 2002 +0000
+++ b/Doc/lib/librobotparser.tex	Fri Apr 05 02:21:09 2002 +0000
@@ -35,7 +35,7 @@
 \end{methoddesc}
 
 \begin{methoddesc}{can_fetch}{useragent, url}
-Returns true if the \var{useragent} is allowed to fetch the \var{url}
+Returns \code{True} if the \var{useragent} is allowed to fetch the \var{url}
 according to the rules contained in the parsed \file{robots.txt} file.
 \end{methoddesc}
 
@@ -60,7 +60,7 @@
 >>> rp.set_url("http://www.musi-cal.com/robots.txt")
 >>> rp.read()
 >>> rp.can_fetch("*", "http://www.musi-cal.com/cgi-bin/search?city=San+Francisco")
-0
+False
 >>> rp.can_fetch("*", "http://www.musi-cal.com/")
-1
+True
 \end{verbatim}