Patch for ConfigParser.py in 1.5.2
Lars Damerow
lars at pixar.com
Tue May 4 21:14:14 EDT 1999
Hi all--
I made a slight change to ConfigParser.py from the 1.5.2 distribution. I
needed the option lines to allow spaces, slashes and whitespace as the option
name, as well as to leave the case of the option name intact.
Can anybody think of a bad reason to do this? Thanks in advance! Here are
the diffs:
202c202
< option = string.lower(option)
---
> option = string.strip(option)
249c249
< r'(?P<option>[-.\w]+)' # - . _ alphanum
---
> r'(?P<option>[-.\w/ \t]+)' # - . _ " " / \t alphanum
310c310
< optname = string.lower(optname)
---
> optname = string.strip(optname)
-lars
___________________________________________________________
Lars Damerow
(code monkey)
Pixar Animation Studios
510.620.6176
lars at pixar.com
"Prepare for a dose of my harmful rays!"
More information about the Python-list
mailing list