summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-12-31 18:37:28 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-12-31 18:37:28 (GMT)
commit9b4dab4da1b02d4e89c3882cd779516cada3644f (patch)
tree442b02ebca102d4c114736136674e06ab8c0bdcc /Doc/lib
parenta3b11e7fb3552bf9a73ba31cda30b9c0f342cb5c (diff)
downloadcpython-9b4dab4da1b02d4e89c3882cd779516cada3644f.zip
cpython-9b4dab4da1b02d4e89c3882cd779516cada3644f.tar.gz
cpython-9b4dab4da1b02d4e89c3882cd779516cada3644f.tar.bz2
SF patch #859286: documentation bool change fix
(Contributed by George Yoshida.)
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/emailmessage.tex2
-rw-r--r--Doc/lib/libcfgparser.tex7
-rw-r--r--Doc/lib/libos.tex5
-rw-r--r--Doc/lib/libsmtplib.tex5
4 files changed, 11 insertions, 8 deletions
diff --git a/Doc/lib/emailmessage.tex b/Doc/lib/emailmessage.tex
index dbd1afd..7618b20 100644
--- a/Doc/lib/emailmessage.tex
+++ b/Doc/lib/emailmessage.tex
@@ -561,7 +561,7 @@ to calling this method, the object's payload was \code{None}
will be the argument \var{payload}.
If the object's payload was already a list
-(i.e. \method{is_multipart()} returns 1), then \var{payload} is
+(i.e. \method{is_multipart()} returns \code{True}), then \var{payload} is
appended to the end of the existing payload list.
For any other type of existing payload, \method{add_payload()} will
diff --git a/Doc/lib/libcfgparser.tex b/Doc/lib/libcfgparser.tex
index 6eba042..deec8ec 100644
--- a/Doc/lib/libcfgparser.tex
+++ b/Doc/lib/libcfgparser.tex
@@ -165,8 +165,8 @@ Returns a list of options available in the specified \var{section}.
\end{methoddesc}
\begin{methoddesc}{has_option}{section, option}
-If the given section exists, and contains the given option. return 1;
-otherwise return 0.
+If the given section exists, and contains the given option,
+return \constant{True}; otherwise return \constant{False}.
\versionadded{1.6}
\end{methoddesc}
@@ -245,7 +245,8 @@ call.
\begin{methoddesc}{remove_option}{section, option}
Remove the specified \var{option} from the specified \var{section}.
If the section does not exist, raise \exception{NoSectionError}.
-If the option existed to be removed, return 1; otherwise return 0.
+If the option existed to be removed, return \constant{True};
+otherwise return \constant{False}.
\versionadded{1.6}
\end{methoddesc}
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index a8ceac8..c96a990 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -272,7 +272,7 @@ Set the current process' user id.
Availability: \UNIX.
\end{funcdesc}
-% placed in this section since it relates to errno.... a little weak ;-(
+% placed in this section since it relates to errno.... a little weak
\begin{funcdesc}{strerror}{code}
Return the error message corresponding to the error code in
\var{code}.
@@ -616,7 +616,8 @@ be used in a suid/sgid environment to test if the invoking user has the
specified access to \var{path}. \var{mode} should be \constant{F_OK}
to test the existence of \var{path}, or it can be the inclusive OR of
one or more of \constant{R_OK}, \constant{W_OK}, and \constant{X_OK} to
-test permissions. Return \code{1} if access is allowed, \code{0} if not.
+test permissions. Return \constant{True} if access is allowed,
+\constant{False} if not.
See the \UNIX{} man page \manpage{access}{2} for more information.
Availability: \UNIX, Windows.
\end{funcdesc}
diff --git a/Doc/lib/libsmtplib.tex b/Doc/lib/libsmtplib.tex
index 92661db..491f75b 100644
--- a/Doc/lib/libsmtplib.tex
+++ b/Doc/lib/libsmtplib.tex
@@ -146,8 +146,9 @@ will be implicitly called by \method{sendmail()} when necessary.
\end{methoddesc}
\begin{methoddesc}{has_extn}{name}
-Return \code{1} if \var{name} is in the set of SMTP service extensions
-returned by the server, \code{0} otherwise. Case is ignored.
+Return \constant{True} if \var{name} is in the set of SMTP service
+extensions returned by the server, \constant{False} otherwise.
+Case is ignored.
\end{methoddesc}
\begin{methoddesc}{verify}{address}