[all-commits] [llvm/llvm-project] e7303f: [Python] Use raw string literals for regexes (#120...
Oliver Stannard via All-commits
all-commits at lists.llvm.org
Wed Dec 18 04:58:43 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e7303fe80a0bea124422219356c1c9e845110a77
https://github.com/llvm/llvm-project/commit/e7303fe80a0bea124422219356c1c9e845110a77
Author: Oliver Stannard <oliver.stannard at arm.com>
Date: 2024-12-18 (Wed, 18 Dec 2024)
Changed paths:
M llvm/utils/extract_symbols.py
Log Message:
-----------
[Python] Use raw string literals for regexes (#120401)
Previously these backslashes were not followed by a valid escape
sequence character so were treated as literal backslashes, which was the
intended behaviour of the code. However python as of 3.12 has started
warning about these, so we should use raw string literals for regexes so
that backslashes are always interpreted literally. I've done this for
every regex in this file for consistency, including the ones which do
not contain backslashes.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list