diff options
| author | Fred Drake <fdrake@acm.org> | 2001-02-14 15:24:17 +0000 |
|---|---|---|
| committer | Fred Drake <fdrake@acm.org> | 2001-02-14 15:24:17 +0000 |
| commit | f0e2513e11bea2b09efa4d537e2a47f6b36f780d (patch) | |
| tree | 7d01558b7405face68a6e10542d7644c3afc8627 /Lib/ConfigParser.py | |
| parent | 071908e314d118b70803a16fcaf44943cb8f3c9d (diff) | |
| download | cpython-f0e2513e11bea2b09efa4d537e2a47f6b36f780d.tar.gz | |
Be much more permissive in what we accept in section names; there has been
at least one addition to the set of accepted characters for every release
since this module was first added; this should take care of the problem
in a more substantial way.
This closes SF bug #132288.
Diffstat (limited to 'Lib/ConfigParser.py')
| -rw-r--r-- | Lib/ConfigParser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py index 14412a38ba..94179dacc6 100644 --- a/Lib/ConfigParser.py +++ b/Lib/ConfigParser.py @@ -387,7 +387,7 @@ class ConfigParser: # of \w, _ is allowed in section header names. SECTCRE = re.compile( r'\[' # [ - r'(?P<header>[-\w_.*,(){} ]+)' # a lot of stuff found by IvL + r'(?P<header>[^]]+)' # very permissive! r'\]' # ] ) OPTCRE = re.compile( |
