We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a01e0a9 commit f74543cCopy full SHA for f74543c
Lib/configparser.py
@@ -579,10 +579,6 @@ def value(self, string):
579
580
class _CommentSpec:
581
def __init__(self, full_prefixes, inline_prefixes):
582
- if not full_prefixes and not inline_prefixes:
583
- # performance optimization when no prefixes (gh-128641)
584
- self.strip = lambda text: text
585
- return
586
full_patterns = (
587
# prefix at the beginning of a line
588
fr'^({re.escape(prefix)}).*'
0 commit comments