A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2001-July/018672.html below:

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

[Python-checkins] CVS: python/dist/src/Lib ConfigParser.py,1.32,1.32.4.1Fred L. Drake fdrake@users.sourceforge.net
Fri, 06 Jul 2001 10:23:24 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv7784/Lib

Modified Files:
      Tag: release21-maint
	ConfigParser.py 
Log Message:

When reading a continuation line, make sure we still use the transformed
name when filling in the internal data structures, otherwise we incorrectly
raise a KeyError.

This fixes SF bug #432369.


Index: ConfigParser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ConfigParser.py,v
retrieving revision 1.32
retrieving revision 1.32.4.1
diff -C2 -r1.32 -r1.32.4.1
*** ConfigParser.py	2001/02/26 21:55:34	1.32
--- ConfigParser.py	2001/07/06 17:23:22	1.32.4.1
***************
*** 432,436 ****
                  value = line.strip()
                  if value:
!                     cursect[optname] = cursect[optname] + '\n ' + value
              # a section header or option header?
              else:
--- 432,437 ----
                  value = line.strip()
                  if value:
!                     k = self.optionxform(optname)
!                     cursect[k] = "%s\n%s" % (cursect[k], value)
              # a section header or option header?
              else:




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4