summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-11-15 08:10:04 (GMT)
committerGeorg Brandl <georg@python.org>2008-11-15 08:10:04 (GMT)
commitee1a7da1354f265040d9785b67719901df01c864 (patch)
treee7b14d3287c8986ccf34f690e696589ec91862c4 /Doc/library
parentc4d39b25073e851514d127304cdbd3978d66795a (diff)
downloadcpython-ee1a7da1354f265040d9785b67719901df01c864.zip
cpython-ee1a7da1354f265040d9785b67719901df01c864.tar.gz
cpython-ee1a7da1354f265040d9785b67719901df01c864.tar.bz2
#4324: fix getlocale() argument.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/locale.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/locale.rst b/Doc/library/locale.rst
index 6d427b7..3dfefa2 100644
--- a/Doc/library/locale.rst
+++ b/Doc/library/locale.rst
@@ -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