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

Class LineQueue

numpy/linalg/lapack_lite/clapack_scrub.py:109–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 return source
108
109class LineQueue:
110 def __init__(self):
111 object.__init__(self)
112 self._queue = []
113
114 def add(self, line):
115 self._queue.append(line)
116
117 def clear(self):
118 self._queue = []
119
120 def flushTo(self, other_queue):
121 for line in self._queue:
122 other_queue.add(line)
123 self.clear()
124
125 def getValue(self):
126 q = LineQueue()
127 self.flushTo(q)
128 s = ''.join(q._queue)
129 self.clear()
130 return s
131
132class CommentQueue(LineQueue):
133 def __init__(self):

Callers 4

getValueMethod · 0.85
cleanCommentsFunction · 0.85
removeHeaderFunction · 0.85
removeBuiltinFunctionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…