MCPcopy
hub / github.com/rocky/python-uncompyle6 / write

Method write

uncompyle6/semantics/linemap.py:30–40  ·  view source on GitHub ↗

Augment write routine to keep track of current line.

(self, *data)

Source from the content-addressed store, hash-verified

28 self.current_line_number = 1
29
30 def write(self, *data):
31 """Augment write routine to keep track of current line."""
32 for line in data:
33 # print(f"XXX write: '{line}'")
34 for i in str(line):
35 if i == "\n":
36 self.current_line_number += 1
37 pass
38 pass
39 pass
40 return super().write(*data)
41
42 # Note n_expr needs treatment too
43

Callers 15

maybe_show_asmFunction · 0.45
maybe_show_treeFunction · 0.45
_testFunction · 0.45
writeFunction · 0.45
decompileFunction · 0.45
mainFunction · 0.45
n_classdef36Function · 0.45
call_ex_kw3Function · 0.45
call_ex_kw4Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected