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/cpu.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/cpu.py')
| -rw-r--r-- | miasm/core/cpu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/core/cpu.py b/miasm/core/cpu.py index 7a1cacff..dae93bf9 100644 --- a/miasm/core/cpu.py +++ b/miasm/core/cpu.py @@ -408,7 +408,7 @@ default_prio = 0x1337 def isbin(s): - return re.match('[0-1]+$', s) + return re.match(r'[0-1]+$', s) def int2bin(i, l): @@ -1301,7 +1301,7 @@ class cls_mn(with_metaclass(metamn, object)): @classmethod def fromstring(cls, text, loc_db, mode = None): global total_scans - name = re.search('(\S+)', text).groups() + name = re.search(r'(\S+)', text).groups() if not name: raise ValueError('cannot find name', text) name = name[0] |