MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / merge_code

Method merge_code

_pydevd_bundle/pydevd_code_to_source.py:537–550  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

535 return self.writer.line_to_contents
536
537 def merge_code(self, code):
538 if DEBUG:
539 print("merge code ----")
540 # for d in dir(code):
541 # if not d.startswith('_'):
542 # print(d, getattr(code, d))
543 line_to_contents = _PyCodeToSource(code, self.memo).build_line_to_contents()
544 lines = []
545 for line, contents in sorted(line_to_contents.items()):
546 lines.append(line)
547 self.writer.get_line(line).extend(contents)
548 if DEBUG:
549 print("end merge code ----")
550 return lines
551
552 def disassemble(self):
553 show_lines = False

Callers 1

_handleMethod · 0.80

Calls 5

_PyCodeToSourceClass · 0.85
itemsMethod · 0.80
get_lineMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected