about summary refs log tree commit diff stats
path: root/miasm/os_dep/linux/environment.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/os_dep/linux/environment.py
parent0b0de2cbd1a5949cd8819899169446c5cf524cc3 (diff)
downloadfocaccia-miasm-ad82438c448597b0c6470eef697a2c1b5f721ef1.tar.gz
focaccia-miasm-ad82438c448597b0c6470eef697a2c1b5f721ef1.zip
Use regex literals for re.* functions
Diffstat (limited to 'miasm/os_dep/linux/environment.py')
-rw-r--r--miasm/os_dep/linux/environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm/os_dep/linux/environment.py b/miasm/os_dep/linux/environment.py
index 808fc847..3ba4382f 100644
--- a/miasm/os_dep/linux/environment.py
+++ b/miasm/os_dep/linux/environment.py
@@ -13,7 +13,7 @@ from miasm.core.interval import interval
 from miasm.jitter.csts import PAGE_READ, PAGE_WRITE
 
 
-REGEXP_T = type(re.compile(''))
+REGEXP_T = type(re.compile(r''))
 
 StatInfo = namedtuple("StatInfo", [
     "st_dev", "st_ino", "st_nlink", "st_mode", "st_uid", "st_gid", "st_rdev",
@@ -262,7 +262,7 @@ class FileSystem(object):
                             expr.flags,
                             exc_info=True,
                         )
-                        return re.compile('$X')
+                        return re.compile(r'$X')
                 return expr
 
         # Remove '../', etc.