diff options
| author | Duncan Ogilvie <mr.exodia.tpodt@gmail.com> | 2024-01-06 18:08:46 +0100 |
|---|---|---|
| committer | Duncan Ogilvie <mr.exodia.tpodt@gmail.com> | 2024-01-06 18:37:17 +0100 |
| commit | ad82438c448597b0c6470eef697a2c1b5f721ef1 (patch) | |
| tree | c758ce65f158c8d05b3066e15cb43d8ac81cfda5 /miasm/core/utils.py | |
| parent | 0b0de2cbd1a5949cd8819899169446c5cf524cc3 (diff) | |
| download | focaccia-miasm-ad82438c448597b0c6470eef697a2c1b5f721ef1.tar.gz focaccia-miasm-ad82438c448597b0c6470eef697a2c1b5f721ef1.zip | |
Use regex literals for re.* functions
Diffstat (limited to 'miasm/core/utils.py')
| -rw-r--r-- | miasm/core/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm/core/utils.py b/miasm/core/utils.py index 41bf78c1..eb170576 100644 --- a/miasm/core/utils.py +++ b/miasm/core/utils.py @@ -26,7 +26,7 @@ COLOR_OP = "black" COLOR_MNEMO = "blue1" -ESCAPE_CHARS = re.compile('[' + re.escape('{}') + '&|<>' + ']') +ESCAPE_CHARS = re.compile(r'[\{\}&|<>]') def set_html_text_color(text, color): return '<font color="%s">%s</font>' % (color, text) |