invocation-tree 0.0.37__tar.gz → 0.0.38__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/PKG-INFO +1 -1
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/invocation_tree/__init__.py +11 -14
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/invocation_tree.egg-info/PKG-INFO +1 -1
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/pyproject.toml +1 -1
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/LICENSE.txt +0 -0
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/README.md +0 -0
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/invocation_tree/regex_set.py +0 -0
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/invocation_tree.egg-info/SOURCES.txt +0 -0
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/invocation_tree.egg-info/dependency_links.txt +0 -0
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/invocation_tree.egg-info/requires.txt +0 -0
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/invocation_tree.egg-info/top_level.txt +0 -0
- {invocation_tree-0.0.37 → invocation_tree-0.0.38}/setup.cfg +0 -0
|
@@ -10,7 +10,7 @@ import functools
|
|
|
10
10
|
|
|
11
11
|
import invocation_tree.regex_set as regset
|
|
12
12
|
|
|
13
|
-
__version__ = "0.0.
|
|
13
|
+
__version__ = "0.0.38"
|
|
14
14
|
__author__ = 'Bas Terwijn'
|
|
15
15
|
|
|
16
16
|
# colors dark
|
|
@@ -28,11 +28,11 @@ color_active_dark = '#1d1d1d'
|
|
|
28
28
|
color_returned_dark = '#997777'
|
|
29
29
|
|
|
30
30
|
# color placeholders
|
|
31
|
-
foreground_color_PH = 'foreground_color_PH'
|
|
32
|
-
background_color_PH = 'background_color_PH'
|
|
33
|
-
color_paused_PH = 'color_paused_PH'
|
|
34
|
-
color_active_PH = 'color_active_PH'
|
|
35
|
-
color_returned_PH = 'color_returned_PH'
|
|
31
|
+
foreground_color_PH = '<foreground_color_PH>'
|
|
32
|
+
background_color_PH = '<background_color_PH>'
|
|
33
|
+
color_paused_PH = '<color_paused_PH>'
|
|
34
|
+
color_active_PH = '<color_active_PH>'
|
|
35
|
+
color_returned_PH = '<color_returned_PH>'
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
def highlight_diff(str1, str2):
|
|
@@ -232,14 +232,14 @@ class Invocation_Tree:
|
|
|
232
232
|
tree_node.is_returned = is_returned
|
|
233
233
|
return_value = tree_node.return_value
|
|
234
234
|
border = 1
|
|
235
|
-
color =
|
|
235
|
+
color = color_paused_PH
|
|
236
236
|
if active:
|
|
237
|
-
color =
|
|
237
|
+
color = color_active_PH
|
|
238
238
|
border = 3
|
|
239
239
|
if is_returned:
|
|
240
|
-
color =
|
|
240
|
+
color = color_returned_PH
|
|
241
241
|
alignment = 'ALIGN="LEFT" BALIGN="LEFT"'
|
|
242
|
-
table = f'<\n<TABLE BORDER="{str(border)}" COLOR=
|
|
242
|
+
table = f'<\n<TABLE BORDER="{str(border)}" COLOR={foreground_color_PH} CELLBORDER="0" CELLSPACING="0" BGCOLOR={color}>\n <TR>'
|
|
243
243
|
class_fun_name = get_class_function_name(tree_node.frame)
|
|
244
244
|
local_vars = tree_node.frame.f_locals
|
|
245
245
|
hightlighted_content = self.get_hightlighted_content(tree_node, class_fun_name, class_fun_name, use_old_content)
|
|
@@ -318,10 +318,7 @@ class Invocation_Tree:
|
|
|
318
318
|
graph_str = self.uncolored_graph.source
|
|
319
319
|
|
|
320
320
|
def replace_color(token, value):
|
|
321
|
-
|
|
322
|
-
result = graph_str.replace(f'={token}', f'="{value}"')
|
|
323
|
-
# HTML-like labels contain quoted placeholder values already.
|
|
324
|
-
return result.replace(token, value)
|
|
321
|
+
return graph_str.replace(f'{token}', f'"{value}"')
|
|
325
322
|
|
|
326
323
|
graph_str = replace_color(foreground_color_PH, self.foreground_color)
|
|
327
324
|
graph_str = replace_color(background_color_PH, self.background_color)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{invocation_tree-0.0.37 → invocation_tree-0.0.38}/invocation_tree.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|