summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2004-04-10 16:39:32 (GMT)
committerSkip Montanaro <skip@pobox.com>2004-04-10 16:39:32 (GMT)
commit249369c7f074b71ab4484a61bd17eb4c3ff6485d (patch)
tree225f25edef272f938767161ae79a7536b8229a9b /Lib/locale.py
parent5bfd98498a868e13834603f966a3ff51c883e8ac (diff)
downloadcpython-249369c7f074b71ab4484a61bd17eb4c3ff6485d.zip
cpython-249369c7f074b71ab4484a61bd17eb4c3ff6485d.tar.gz
cpython-249369c7f074b71ab4484a61bd17eb4c3ff6485d.tar.bz2
atof: correct parameter name
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 192c91f..6e509a6 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -164,13 +164,13 @@ def atof(string,func=float):
#First, get rid of the grouping
ts = localeconv()['thousands_sep']
if ts:
- str = str.replace(ts, '')
+ string = string.replace(ts, '')
#next, replace the decimal point with a dot
dd = localeconv()['decimal_point']
if dd:
- str = str.replace(dd, '.')
+ string = string.replace(dd, '.')
#finally, parse the string
- return func(str)
+ return func(string)
def atoi(str):
"Converts a string to an integer according to the locale settings."