Skip to content

Commit 36ff1f1

Browse files
cdelerpgjones
authored andcommitted
Fixing PR remarks
- reword comment
1 parent 7e7fc78 commit 36ff1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

h11/_receivebuffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def maybe_extract_until_next(self, needle):
9595
else:
9696
looked_at = self._start
9797
self._looked_for = needle
98-
# re.compile operation is more expensive than just byte compare
98+
# Check if default delimiter to avoid expensive re.compile
9999
if needle == default_delimiter:
100100
self._looked_for_regex = delimiter_regex
101101
else:

0 commit comments

Comments
 (0)