diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-04-12 23:15:44 -0700 |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-04-12 23:15:44 -0700 |
commit | 6fce35354a7fecb9130fd163f86822c468d1413e (patch) | |
tree | 3c206e5324ef621382372c14bcb1f4f8d85794d9 /Lib/locale.py | |
parent | Issue #25496: Merge tarfile doc from 3.5 (diff) | |
parent | [minor] - Correct the docstring of locale.str. Patch by poleto. (diff) | |
download | cpython-6fce35354a7fecb9130fd163f86822c468d1413e.tar.gz cpython-6fce35354a7fecb9130fd163f86822c468d1413e.tar.bz2 cpython-6fce35354a7fecb9130fd163f86822c468d1413e.zip |
merge 3.5.
[minor] - Correct the docstring of locale.str. Patch by poleto.
Diffstat (limited to 'Lib/locale.py')
-rw-r--r-- | Lib/locale.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Lib/locale.py b/Lib/locale.py index 074f6e02faf..206cdb3cc59 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -1,13 +1,12 @@ -""" Locale support. +"""Locale support module. - The module provides low-level access to the C lib's locale APIs - and adds high level number formatting APIs as well as a locale - aliasing engine to complement these. +The module provides low-level access to the C lib's locale APIs and adds high +level number formatting APIs as well as a locale aliasing engine to complement +these. - The aliasing engine includes support for many commonly used locale - names and maps them to values suitable for passing to the C lib's - setlocale() function. It also includes default encodings for all - supported locale names. +The aliasing engine includes support for many commonly used locale names and +maps them to values suitable for passing to the C lib's setlocale() function. It +also includes default encodings for all supported locale names. """ @@ -298,7 +297,7 @@ def currency(val, symbol=True, grouping=False, international=False): return s.replace('<', '').replace('>', '') def str(val): - """Convert float to integer, taking the locale into account.""" + """Convert float to string, taking the locale into account.""" return format("%.12g", val) def delocalize(string): |