[Python-checkins] r67224 - python/trunk/Doc/library/locale.rst

georg.brandl python-checkins at python.org
Sat Nov 15 09:10:04 CET 2008


Author: georg.brandl
Date: Sat Nov 15 09:10:04 2008
New Revision: 67224

Log:
#4324: fix getlocale() argument.


Modified:
   python/trunk/Doc/library/locale.rst

Modified: python/trunk/Doc/library/locale.rst
==============================================================================
--- python/trunk/Doc/library/locale.rst	(original)
+++ python/trunk/Doc/library/locale.rst	Sat Nov 15 09:10:04 2008
@@ -492,7 +492,7 @@
 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


More information about the Python-checkins mailing list