]> granicus.if.org Git - python/commitdiff
SF patch #1047577, typo in liblocale.tex
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 17 Oct 2004 16:36:05 +0000 (16:36 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 17 Oct 2004 16:36:05 +0000 (16:36 +0000)
Doc/lib/liblocale.tex

index cfbea931848bc4078ad714359c507b013c4d9d22..e6ba2c1148cd5d17816751399b858b58162a3895 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