Skip to content

Commit

Permalink
SPMI: Fix Python 3.12 warnings in superpmi.py (dotnet#100533)
Browse files Browse the repository at this point in the history
Python 3.12 prints some warnings when parsing superpmi.py due to some
insufficiently escaped characters in some strings.
  • Loading branch information
jakobbotsch authored and matouskozak committed Apr 30, 2024
1 parent 5080ec9 commit bd47629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/coreclr/scripts/superpmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def decode_clrjit_build_string(clrjit_path):
with open(clrjit_path, "rb") as fh:
contents = fh.read()

match = re.search(b'RyuJIT built by ([^\0]+?) targeting ([^\0]+?)-([^\0]+?)(| \(with native PGO\)| \(without native PGO\)|)\0', contents)
match = re.search(b'RyuJIT built by ([^\0]+?) targeting ([^\0]+?)-([^\0]+?)(| \\(with native PGO\\)| \\(without native PGO\\)|)\0', contents)
if match is None:
return None

Expand Down Expand Up @@ -1530,7 +1530,7 @@ def save_repro_mc_files(temp_location, coreclr_args, artifacts_base_name, repro_


def parse_replay_asserts(mch_file, replay_output):
""" Parse output from failed replay, looking for asserts and correlating them to provide the best
r""" Parse output from failed replay, looking for asserts and correlating them to provide the best
repro scenarios.
Look for lines like:
Expand Down Expand Up @@ -3677,7 +3677,7 @@ def filter_local_path(path):


def process_mch_files_arg(coreclr_args):
""" Process the -mch_files argument. If the argument is not specified, then download files
r""" Process the -mch_files argument. If the argument is not specified, then download files
from Azure Storage and any specified private MCH stores.
Any files on UNC (i.e., "\\server\share" paths on Windows) or Azure Storage stores,
Expand Down

0 comments on commit bd47629

Please sign in to comment.