about summary refs log tree commit diff stats
path: root/miasm/core/graph.py
diff options
context:
space:
mode:
authorDuncan Ogilvie <mr.exodia.tpodt@gmail.com>2024-01-06 18:08:46 +0100
committerDuncan Ogilvie <mr.exodia.tpodt@gmail.com>2024-01-06 18:37:17 +0100
commitad82438c448597b0c6470eef697a2c1b5f721ef1 (patch)
treec758ce65f158c8d05b3066e15cb43d8ac81cfda5 /miasm/core/graph.py
parent0b0de2cbd1a5949cd8819899169446c5cf524cc3 (diff)
downloadfocaccia-miasm-ad82438c448597b0c6470eef697a2c1b5f721ef1.tar.gz
focaccia-miasm-ad82438c448597b0c6470eef697a2c1b5f721ef1.zip
Use regex literals for re.* functions
Diffstat (limited to 'miasm/core/graph.py')
-rw-r--r--miasm/core/graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/core/graph.py b/miasm/core/graph.py
index 0dfd7e6a..e680894c 100644
--- a/miasm/core/graph.py
+++ b/miasm/core/graph.py
@@ -20,7 +20,7 @@ class DiGraph(object):
         # N -> Nodes N2 with a edge (N2 -> N)
         self._nodes_pred = {}
 
-        self.escape_chars = re.compile('[' + re.escape('{}') + '&|<>' + ']')
+        self.escape_chars = re.compile(r'[\{\}&|<>]')
 
 
     def __repr__(self):