Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3c532b

Browse files
committed
[minor] - Correct the docstring of locale.str. Patch by poleto.
1 parent 7f7c605 commit a3c532b

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

Lib/locale.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
""" Locale support.
1+
"""Locale support module.
22
3-
The module provides low-level access to the C lib's locale APIs
4-
and adds high level number formatting APIs as well as a locale
5-
aliasing engine to complement these.
3+
The module provides low-level access to the C lib's locale APIs and adds high
4+
level number formatting APIs as well as a locale aliasing engine to complement
5+
these.
66
7-
The aliasing engine includes support for many commonly used locale
8-
names and maps them to values suitable for passing to the C lib's
9-
setlocale() function. It also includes default encodings for all
10-
supported locale names.
7+
The aliasing engine includes support for many commonly used locale names and
8+
maps them to values suitable for passing to the C lib's setlocale() function. It
9+
also includes default encodings for all supported locale names.
1110
1211
"""
1312

@@ -298,7 +297,7 @@ def currency(val, symbol=True, grouping=False, international=False):
298297
return s.replace('<', '').replace('>', '')
299298

300299
def str(val):
301-
"""Convert float to integer, taking the locale into account."""
300+
"""Convert float to string, taking the locale into account."""
302301
return format("%.12g", val)
303302

304303
def delocalize(string):

0 commit comments

Comments
 (0)