diff options
author | xyyy1420 <xyyy1420@gmail.com> | 2024-07-14 21:56:59 +0800 |
---|---|---|
committer | xyyy1420 <xyyy1420@gmail.com> | 2024-07-14 21:56:59 +0800 |
commit | 4dcca1ca36fab1d1d5e9b1348885a7aab4b83a15 (patch) | |
tree | c4fe61bea5cc87364dcbbf1a8f52b1e195815878 | |
parent | 479cdca43f85c8ec24deb528132416e7cfc81e6d (diff) | |
download | riscv-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-x | parse.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |