[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.28,1.29

Eric S. Raymond esr@users.sourceforge.net
Thu, 08 Feb 2001 21:37:27 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv5939

Modified Files:
	ConfigParser.py 
Log Message:
Correction after second code path test.


Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -r1.28 -r1.29
*** ConfigParser.py	2001/02/09 05:19:09	1.28
--- ConfigParser.py	2001/02/09 05:37:25	1.29
***************
*** 316,320 ****
      def getboolean(self, section, option):
          v = self.get(section, option)
!         val = v.atoi()
          if val not in (0, 1):
              raise ValueError, 'Not a boolean: %s' % v
--- 316,320 ----
      def getboolean(self, section, option):
          v = self.get(section, option)
!         val = int(v)
          if val not in (0, 1):
              raise ValueError, 'Not a boolean: %s' % v