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

Method flushTo

numpy/linalg/lapack_lite/clapack_scrub.py:143–152  ·  view source on GitHub ↗
(self, other_queue)

Source from the content-addressed store, hash-verified

141 LineQueue.add(self, line)
142
143 def flushTo(self, other_queue):
144 if len(self._queue) == 0:
145 pass
146 elif len(self._queue) == 1:
147 other_queue.add('/*' + self._queue[0][2:].rstrip() + ' */\n')
148 else:
149 other_queue.add('/*\n')
150 LineQueue.flushTo(self, other_queue)
151 other_queue.add('*/\n')
152 self.clear()
153
154# This really seems to be about 4x longer than it needs to be
155def cleanComments(source):

Callers 1

cleanCommentsFunction · 0.95

Calls 4

rstripMethod · 0.80
clearMethod · 0.80
addMethod · 0.45
flushToMethod · 0.45

Tested by

no test coverage detected