summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-04-13 06:14:14 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-04-13 06:14:14 (GMT)
commita3c532b0ed888ae5b7287f1484c311be9d324d70 (patch)
tree35f03a57fb0236c33b099f9c50fefaefe6be5edb /Lib/locale.py
parent7f7c605f295059e582fb6e208b2a5ee242533042 (diff)
downloadcpython-a3c532b0ed888ae5b7287f1484c311be9d324d70.zip
cpython-a3c532b0ed888ae5b7287f1484c311be9d324d70.tar.gz
cpython-a3c532b0ed888ae5b7287f1484c311be9d324d70.tar.bz2
[minor] - Correct the docstring of locale.str. Patch by poleto.
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index ceaa6d8..60bfbea 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):