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 c2418c1 commit f7dffd6Copy full SHA for f7dffd6
Lib/configparser.py
@@ -580,10 +580,6 @@ def value(self, string):
580
581
class _CommentSpec:
582
def __init__(self, full_prefixes, inline_prefixes):
583
- if not full_prefixes and not inline_prefixes:
584
- # performance optimization when no prefixes (gh-128641)
585
- self.strip = lambda text: text
586
- return
587
full_patterns = (
588
# prefix at the beginning of a line
589
fr'^({re.escape(prefix)}).*'
0 commit comments