Skip to content

Commit f74543c

Browse files
committed
Remove the optimization, as it has no effect.
1 parent a01e0a9 commit f74543c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Lib/configparser.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,6 @@ def value(self, string):
579579

580580
class _CommentSpec:
581581
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
586582
full_patterns = (
587583
# prefix at the beginning of a line
588584
fr'^({re.escape(prefix)}).*'

0 commit comments

Comments
 (0)