MCPcopy Create free account
hub / github.com/numpy/numpy / HaveBlankLines

Function HaveBlankLines

numpy/linalg/lapack_lite/clapack_scrub.py:187–199  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

185 return SourceLines
186
187 def HaveBlankLines(line):
188 if isBlank(line):
189 blanks.add('\n')
190 return HaveBlankLines
191 elif isCommentLine(line):
192 blanks.flushTo(comments)
193 comments.add(line)
194 return HaveCommentLines
195 else:
196 comments.flushTo(lines)
197 blanks.flushTo(lines)
198 lines.add(line)
199 return SourceLines
200
201 state = SourceLines
202 for line in UStringIO(source):

Callers

nothing calls this directly

Calls 4

isCommentLineFunction · 0.85
isBlankFunction · 0.70
addMethod · 0.45
flushToMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…