]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF patch #1047577, typo in liblocale.tex
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 17 Oct 2004 16:46:28 +0000 (16:46 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 17 Oct 2004 16:46:28 +0000 (16:46 +0000)
Doc/lib/liblocale.tex

index 967c75991ea2cecefea04c4790cecc8bef17b4b8..91cc961e537b7bc3fb2f103d884453865a99c335 100644 (file)
@@ -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