MCPcopy Create free account
hub / github.com/ipython/ipython / _break_one_group

Method _break_one_group

IPython/lib/pretty.py:199–207  ·  view source on GitHub ↗
(self, group)

Source from the content-addressed store, hash-verified

197 self.indentation = 0
198
199 def _break_one_group(self, group):
200 while group.breakables:
201 x = self.buffer.popleft()
202 self.output_width = x.output(self.output, self.output_width)
203 self.buffer_width -= x.width
204 while self.buffer and isinstance(self.buffer[0], Text):
205 x = self.buffer.popleft()
206 self.output_width = x.output(self.output, self.output_width)
207 self.buffer_width -= x.width
208
209 def _break_outer_groups(self):
210 while self.max_width < self.output_width + self.buffer_width:

Callers 2

_break_outer_groupsMethod · 0.95
break_Method · 0.95

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected