]> granicus.if.org Git - python/commitdiff
[minor] - Correct the docstring of locale.str. Patch by poleto.
authorSenthil Kumaran <senthil@uthcode.com>
Wed, 13 Apr 2016 06:14:14 +0000 (23:14 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Wed, 13 Apr 2016 06:14:14 +0000 (23:14 -0700)
Lib/locale.py

index ceaa6d8ff720fdbdfb076d9497f50e8e9028f081..60bfbea5be277204d5e2d1e7863296e9c4139bd5 100644 (file)
@@ -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):