]> granicus.if.org Git - python/commitdiff
Fix comments relating to the specific regexs used to parse section and
authorFred Drake <fdrake@acm.org>
Mon, 28 Feb 2000 23:23:55 +0000 (23:23 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 28 Feb 2000 23:23:55 +0000 (23:23 +0000)
option names; errors noted by Greg Stein <gstein@lyra.org>.

Lib/ConfigParser.py

index e871cc547877e8fb996ff937c9ea0684ab8c4c2a..aac9b691923a37b752f8cd43218d5787d8b917d6 100644 (file)
@@ -292,11 +292,11 @@ class ConfigParser:
     # 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