diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-04-13 06:13:33 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-04-13 06:13:33 (GMT) |
commit | f1023bad2ebe4136666934c69794ba95cbd4eb09 (patch) | |
tree | db9f917c751fbcf0120cb498d098767f81dc45f2 /Lib | |
parent | b9b98c81fdb17dc1e657de21cd79eea05eed43b3 (diff) | |
download | cpython-f1023bad2ebe4136666934c69794ba95cbd4eb09.zip cpython-f1023bad2ebe4136666934c69794ba95cbd4eb09.tar.gz cpython-f1023bad2ebe4136666934c69794ba95cbd4eb09.tar.bz2 |
[minor] - Correct the docstring of locale.str. Patch by poleto.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/locale.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Lib/locale.py b/Lib/locale.py index f547bab..05f6316 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -1,14 +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 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 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. """ import sys @@ -303,7 +301,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 atof(string, func=float): |