mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Initialize the lines_count field with fallback to empty dict
This commit is contained in:
@@ -88,7 +88,7 @@ def tree_stats_to_response(filename, response):
|
||||
tstats.name = node.name
|
||||
tstats.count = node.count
|
||||
tstats.children = []
|
||||
tstats.line_count = {}
|
||||
tstats.line_count = getattr(node, 'lines', {})
|
||||
|
||||
if parent is not None:
|
||||
if parent.children is None:
|
||||
|
||||
Reference in New Issue
Block a user