MCPcopy Index your code
hub / github.com/ipython/ipython / __repr__

Method __repr__

IPython/lib/display.py:618–629  ·  view source on GitHub ↗

return newline-separated absolute paths

(self)

Source from the content-addressed store, hash-verified

616 return '\n'.join(result_lines)
617
618 def __repr__(self):
619 """return newline-separated absolute paths
620 """
621 result_lines = []
622 if self.recursive:
623 walked_dir = list(walk(self.path))
624 else:
625 walked_dir = [next(walk(self.path))]
626 walked_dir.sort()
627 for dirname, subdirs, fnames in walked_dir:
628 result_lines += self.terminal_display_formatter(dirname, fnames, self.included_suffixes)
629 return '\n'.join(result_lines)
630
631
632class Code(TextDisplayObject):

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected