File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
from textual .dom import DOMNode
20
20
from textual .screen import ModalScreen
21
21
from textual .widgets import Footer
22
- from textual .widgets import Header
23
22
from textual .widgets import Label
24
23
from textual .widgets import ListItem
25
24
from textual .widgets import ListView
33
32
from memray .reporters .frame_tools import is_cpython_internal
34
33
from memray .reporters .frame_tools import is_frame_from_import_system
35
34
from memray .reporters .frame_tools import is_frame_interesting
35
+ from memray .reporters .tui import _filename_to_module_name
36
36
37
37
MAX_STACKS = int (sys .getrecursionlimit () // 2.5 )
38
38
@@ -196,7 +196,9 @@ def create_tree(
196
196
size = size_str ,
197
197
info_color = _info_color (node , root_data ),
198
198
function = function ,
199
- code_position = f"{ file } :{ lineno } " if lineno != 0 else file ,
199
+ code_position = f"{ _filename_to_module_name (file )} :{ lineno } "
200
+ if lineno != 0
201
+ else file ,
200
202
)
201
203
)
202
204
children = tuple (node .children .values ())
You can’t perform that action at this time.
0 commit comments