summaryrefslogtreecommitdiffstats
path: root/Doc/lib/liblocale.tex
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2004-10-17 16:36:05 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2004-10-17 16:36:05 (GMT)
commit2562ff2de3cb968535df5713e76d843b1325b300 (patch)
treed9d60a6db71605820c674eb5c8d2b1c1b94d3b6b /Doc/lib/liblocale.tex
parentb04b6afd01834c68136e295433e6ed16569ea592 (diff)
downloadcpython-2562ff2de3cb968535df5713e76d843b1325b300.zip
cpython-2562ff2de3cb968535df5713e76d843b1325b300.tar.gz
cpython-2562ff2de3cb968535df5713e76d843b1325b300.tar.bz2
SF patch #1047577, typo in liblocale.tex
Diffstat (limited to 'Doc/lib/liblocale.tex')
-rw-r--r--Doc/lib/liblocale.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/liblocale.tex b/Doc/lib/liblocale.tex
index cfbea93..e6ba2c1 100644
--- a/Doc/lib/liblocale.tex
+++ b/Doc/lib/liblocale.tex
@@ -397,7 +397,7 @@ Example:
\begin{verbatim}
>>> import locale
->>> loc = locale.setlocale(locale.LC_ALL) # get current locale
+>>> loc = locale.getlocale(locale.LC_ALL) # get current locale
>>> locale.setlocale(locale.LC_ALL, 'de_DE') # use German locale; name might vary with platform
>>> locale.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut
>>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale