MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / __str__

Method __str__

uncompyle6/semantics/parser_error.py:24–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.debug = debug
23
24 def __str__(self):
25 lines = ["--- This code section failed: ---"]
26 if self.debug:
27 lines.extend([t.format(token_num=i + 1) for i, t in enumerate(self.tokens)])
28 else:
29 lines.extend([t.format() for t in self.tokens])
30 lines.extend(["", str(self.error)])
31 return "\n".join(lines)

Callers

nothing calls this directly

Calls 2

formatMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected