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

Method __repr__

IPython/lib/display.py:594–605  ·  view source on GitHub ↗

return newline-separated absolute paths

(self)

Source from the content-addressed store, hash-verified

592 return '\n'.join(result_lines)
593
594 def __repr__(self):
595 """return newline-separated absolute paths
596 """
597 result_lines = []
598 if self.recursive:
599 walked_dir = list(walk(self.path))
600 else:
601 walked_dir = [next(walk(self.path))]
602 walked_dir.sort()
603 for dirname, subdirs, fnames in walked_dir:
604 result_lines += self.terminal_display_formatter(dirname, fnames, self.included_suffixes)
605 return '\n'.join(result_lines)
606
607
608class Code(TextDisplayObject):

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected