diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2024-01-07 22:48:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-07 22:48:37 +0100 |
| commit | 3a2fb2472c0e8e01f84ed29be29a929775ed07ab (patch) | |
| tree | 17718031046a1e912072db057993b478aa0ce06e /test/analysis/depgraph.py | |
| parent | e9dee4eb5e8b8dc0b81e22598b754c8df29f1674 (diff) | |
| parent | 2bf07ad1eb835e12b4b3dbaf42f71adf888a8cc1 (diff) | |
| download | focaccia-miasm-3a2fb2472c0e8e01f84ed29be29a929775ed07ab.tar.gz focaccia-miasm-3a2fb2472c0e8e01f84ed29be29a929775ed07ab.zip | |
Merge pull request #1464 from mrexodia/python312
Python 3.12 support
Diffstat (limited to 'test/analysis/depgraph.py')
| -rw-r--r-- | test/analysis/depgraph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/analysis/depgraph.py b/test/analysis/depgraph.py index 57a73a5f..9760e717 100644 --- a/test/analysis/depgraph.py +++ b/test/analysis/depgraph.py @@ -108,7 +108,7 @@ class IRATest(LifterModelCall): def bloc2graph(irgraph, label=False, lines=True): """Render dot graph of @blocks""" - escape_chars = re.compile('[' + re.escape('{}') + ']') + escape_chars = re.compile(r'[\{\}]') label_attr = 'colspan="2" align="center" bgcolor="grey"' edge_attr = 'label = "%s" color="%s" style="bold"' td_attr = 'align="left"' @@ -179,7 +179,7 @@ def bloc2graph(irgraph, label=False, lines=True): def dg2graph(graph, label=False, lines=True): """Render dot graph of @blocks""" - escape_chars = re.compile('[' + re.escape('{}') + ']') + escape_chars = re.compile(r'[\{\}]') label_attr = 'colspan="2" align="center" bgcolor="grey"' edge_attr = 'label = "%s" color="%s" style="bold"' td_attr = 'align="left"' |