summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-12 03:23:51 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-12 03:23:51 (GMT)
commitbf3a75283ceffa3d54ac941dbf83869f0fa23027 (patch)
tree620ec866258a9d45824041c3e79a6a9c85b617e7 /Doc
parent73414a2705723b7d3e7ecc34bcb180a602577e5d (diff)
downloadcpython-bf3a75283ceffa3d54ac941dbf83869f0fa23027.zip
cpython-bf3a75283ceffa3d54ac941dbf83869f0fa23027.tar.gz
cpython-bf3a75283ceffa3d54ac941dbf83869f0fa23027.tar.bz2
Fix minor typos.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/liblocale.tex4
-rw-r--r--Doc/lib/libmimetools.tex2
-rw-r--r--Doc/lib/libpyexpat.tex2
-rw-r--r--Doc/lib/librepr.tex2
4 files changed, 5 insertions, 5 deletions
diff --git a/Doc/lib/liblocale.tex b/Doc/lib/liblocale.tex
index 4457f33..85d0339 100644
--- a/Doc/lib/liblocale.tex
+++ b/Doc/lib/liblocale.tex
@@ -426,8 +426,8 @@ threads that happen to run before the settings have been restored.
If, when coding a module for general use, you need a locale
independent version of an operation that is affected by the locale
-(e.g. \function{string.lower()}, or certain formats used with
-\function{time.strftime()})), you will have to find a way to do it
+(such as \function{string.lower()}, or certain formats used with
+\function{time.strftime()}), you will have to find a way to do it
without using the standard library routine. Even better is convincing
yourself that using locale settings is okay. Only as a last resort
should you document that your module is not compatible with
diff --git a/Doc/lib/libmimetools.tex b/Doc/lib/libmimetools.tex
index 1baff49..92679ed 100644
--- a/Doc/lib/libmimetools.tex
+++ b/Doc/lib/libmimetools.tex
@@ -88,7 +88,7 @@ This is a list of strings. For parameters of the form
\begin{methoddesc}{getparam}{name}
Return the \var{value} of the first parameter (as returned by
-\method{getplist()} of the form \samp{\var{name}=\var{value}} for the
+\method{getplist()}) of the form \samp{\var{name}=\var{value}} for the
given \var{name}. If \var{value} is surrounded by quotes of the form
`\code{<}...\code{>}' or `\code{"}...\code{"}', these are removed.
\end{methoddesc}
diff --git a/Doc/lib/libpyexpat.tex b/Doc/lib/libpyexpat.tex
index 442bed1..e1f9575 100644
--- a/Doc/lib/libpyexpat.tex
+++ b/Doc/lib/libpyexpat.tex
@@ -580,7 +580,7 @@ entity instead of an internal entity.
\begin{datadescni}{XML_ERROR_BAD_CHAR_REF}
A character reference referred to a character which is illegal in XML
-(for example, character \code{0}, or `\code{\&\#0;}'.
+(for example, character \code{0}, or `\code{\&\#0;}').
\end{datadescni}
\begin{datadescni}{XML_ERROR_BINARY_ENTITY_REF}
diff --git a/Doc/lib/librepr.tex b/Doc/lib/librepr.tex
index 8dfd0b4..b71aae1 100644
--- a/Doc/lib/librepr.tex
+++ b/Doc/lib/librepr.tex
@@ -96,7 +96,7 @@ and methods which format specific object types.
Formatting methods for specific types are implemented as methods
with a name based on the type name. In the method name, \var{type}
is replaced by
- \code{string.join(string.split(type(\var{obj}).__name__, '_')}.
+ \code{string.join(string.split(type(\var{obj}).__name__, '_'))}.
Dispatch to these methods is handled by \method{repr1()}.
Type-specific methods which need to recursively format a value
should call \samp{self.repr1(\var{subobj}, \var{level} - 1)}.