aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxyyy1420 <xyyy1420@gmail.com>2024-07-14 21:56:59 +0800
committerxyyy1420 <xyyy1420@gmail.com>2024-07-14 21:56:59 +0800
commit4dcca1ca36fab1d1d5e9b1348885a7aab4b83a15 (patch)
treec4fe61bea5cc87364dcbbf1a8f52b1e195815878
parent479cdca43f85c8ec24deb528132416e7cfc81e6d (diff)
downloadriscv-opcodes-4dcca1ca36fab1d1d5e9b1348885a7aab4b83a15.zip
riscv-opcodes-4dcca1ca36fab1d1d5e9b1348885a7aab4b83a15.tar.gz
riscv-opcodes-4dcca1ca36fab1d1d5e9b1348885a7aab4b83a15.tar.bz2
Eliminate SyntaxWarning: invalid escape sequence '\s'
Signed-off-by: xyyy1420 <xyyy1420@gmail.com>
-rwxr-xr-xparse.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.py b/parse.py
index 4553e06..cbad629 100755
--- a/parse.py
+++ b/parse.py
@@ -315,7 +315,7 @@ def create_inst_dict(file_filter, include_pseudo=False, include_pseudo_ops=[]):
# extension. Else throw error.
found = False
for oline in open(ext_file):
- if not re.findall(f'^\s*{orig_inst}\s+',oline):
+ if not re.findall(f'^\\s*{orig_inst}\\s+',oline):
continue
else:
found = True
@@ -382,7 +382,7 @@ def create_inst_dict(file_filter, include_pseudo=False, include_pseudo_ops=[]):
# extension. Else throw error.
found = False
for oline in open(ext_file):
- if not re.findall(f'^\s*{reg_instr}\s+',oline):
+ if not re.findall(f'^\\s*{reg_instr}\\s+',oline):
continue
else:
found = True