Mercurial > cpython-lru_cache-weakref
diff Lib/ConfigParser.py @ 11875:286303f00546 legacy-trunk
Fix comments relating to the specific regexs used to parse section and
option names; errors noted by Greg Stein <gstein@lyra.org>.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Mon, 28 Feb 2000 23:23:55 +0000 |
| parents | 7ed104c40db3 |
| children | b975a056deb6 |
line wrap: on
line diff
--- a/Lib/ConfigParser.py Mon Feb 28 22:37:30 2000 +0000 +++ b/Lib/ConfigParser.py Mon Feb 28 23:23:55 2000 +0000 @@ -292,11 +292,11 @@ # of \w, _ is allowed in section header names. SECTCRE = re.compile( r'\[' # [ - r'(?P<header>[-\w_.*,(){}]+)' # `-', `_' or any alphanum + r'(?P<header>[-\w_.*,(){}]+)' # a lot of stuff found by IvL r'\]' # ] ) OPTCRE = re.compile( - r'(?P<option>[-\w_.*,(){}]+)' # - . _ alphanum + r'(?P<option>[-\w_.*,(){}]+)' # a lot of stuff found by IvL r'[ \t]*(?P<vi>[:=])[ \t]*' # any number of space/tab, # followed by separator # (either : or =), followed
