]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#4324: fix getlocale() argument.
authorGeorg Brandl <georg@python.org>
Sat, 15 Nov 2008 08:10:04 +0000 (08:10 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 15 Nov 2008 08:10:04 +0000 (08:10 +0000)
Doc/library/locale.rst

index 6d427b7dc6fe37492aa4526f7ee6812cd022ecd8..3dfefa2657fe4c719fb5710dde7676233c1b97b2 100644 (file)
@@ -492,7 +492,7 @@ descriptions are taken from the corresponding description in the GNU C library.
 Example::
 
    >>> import locale
-   >>> loc = locale.getlocale(locale.LC_ALL) # get current locale
+   >>> loc = locale.getlocale() # 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