Skip to content

Commit 278f4d3

Browse files
Rename too_much_lines to too_many_lines
1 parent 3c40c29 commit 278f4d3

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Tools/c-analyzer/c_parser/parser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def _iter_source(lines, *, maxtext=11_000, maxlines=200, showtext=False):
223223
'''
224224
raise RuntimeError(textwrap.dedent(msg))
225225

226-
if srcinfo.too_much_lines(maxlines):
226+
if srcinfo.too_many_lines(maxlines):
227227
import textwrap
228228
msg = f'''
229229
too much lines, try to increase MAX_SIZES[MAXLINES] in cpython/_parser.py

Tools/c-analyzer/c_parser/parser/_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ def done(self):
126126
def too_much_text(self, maxtext):
127127
return maxtext and len(self.text) > maxtext
128128

129-
def too_much_lines(self, maxlines):
129+
def too_many_lines(self, maxlines):
130130
return maxlines and self.end - self.start > maxlines
131131

132132
def too_much(self, maxtext, maxlines):
133133
if self.too_much_text(maxtext):
134134
pass
135-
elif self.too_much_lines(maxlines):
135+
elif self.too_many_lines(maxlines):
136136
pass
137137
else:
138138
return False

0 commit comments

Comments
 (0)