summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libcfgparser.tex
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/libcfgparser.tex
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/libcfgparser.tex')
-rw-r--r--Doc/lib/libcfgparser.tex7
1 files changed, 4 insertions, 3 deletions
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}