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

index f547babf84b4b299d16653540d99c4059e55edb8..05f6316e7bbc38815b66f9444d1251560f83909f 100644 (file)
@@ -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):