[Python-checkins] python/dist/src/Lib locale.py,1.26,1.27

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Sat Apr 10 12:39:35 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5276

Modified Files:
	locale.py 
Log Message:
atof: correct parameter name


Index: locale.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/locale.py,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** locale.py	23 Mar 2004 23:50:16 -0000	1.26
--- locale.py	10 Apr 2004 16:39:32 -0000	1.27
***************
*** 165,175 ****
      ts = localeconv()['thousands_sep']
      if ts:
!         str = str.replace(ts, '')
      #next, replace the decimal point with a dot
      dd = localeconv()['decimal_point']
      if dd:
!         str = str.replace(dd, '.')
      #finally, parse the string
!     return func(str)
  
  def atoi(str):
--- 165,175 ----
      ts = localeconv()['thousands_sep']
      if ts:
!         string = string.replace(ts, '')
      #next, replace the decimal point with a dot
      dd = localeconv()['decimal_point']
      if dd:
!         string = string.replace(dd, '.')
      #finally, parse the string
!     return func(string)
  
  def atoi(str):




More information about the Python-checkins mailing list