Commit ee1a7da1 authored by Georg Brandl's avatar Georg Brandl

#4324: fix getlocale() argument.

parent c4d39b25
...@@ -492,7 +492,7 @@ descriptions are taken from the corresponding description in the GNU C library. ...@@ -492,7 +492,7 @@ descriptions are taken from the corresponding description in the GNU C library.
Example:: Example::
>>> import locale >>> 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.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.strcoll('f\xe4n', 'foo') # compare a string containing an umlaut
>>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale >>> locale.setlocale(locale.LC_ALL, '') # use user's preferred locale
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment