Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/Lib/ConfigParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ def remove_section(self, section):
r'\]' # ]
)
OPTCRE = re.compile(
r'[ \t]*' # ignore any starting white space
r'(?P<option>[^:=\s][^:=]*)' # very permissive!
r'\s*(?P<vi>[:=])\s*' # any number of space/tab,
# followed by separator
Expand All @@ -444,6 +445,7 @@ def remove_section(self, section):
r'(?P<value>.*)$' # everything up to eol
)
OPTCRE_NV = re.compile(
r'[ \t]*' # ignore any starting white space
r'(?P<option>[^:=\s][^:=]*)' # very permissive!
r'\s*(?:' # any number of space/tab,
r'(?P<vi>[:=])\s*' # optionally followed by
Expand Down