about summary refs log tree commit diff stats
path: root/miasm/os_dep/linux/environment.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2024-01-07 22:48:37 +0100
committerGitHub <noreply@github.com>2024-01-07 22:48:37 +0100
commit3a2fb2472c0e8e01f84ed29be29a929775ed07ab (patch)
tree17718031046a1e912072db057993b478aa0ce06e /miasm/os_dep/linux/environment.py
parente9dee4eb5e8b8dc0b81e22598b754c8df29f1674 (diff)
parent2bf07ad1eb835e12b4b3dbaf42f71adf888a8cc1 (diff)
downloadfocaccia-miasm-3a2fb2472c0e8e01f84ed29be29a929775ed07ab.tar.gz
focaccia-miasm-3a2fb2472c0e8e01f84ed29be29a929775ed07ab.zip
Merge pull request #1464 from mrexodia/python312
Python 3.12 support
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.