ARM-software / LLVM-embedded-toolchain-for-Arm

A project dedicated to building LLVM toolchain for Arm and AArch64 embedded targets.
Apache License 2.0
425 stars 98 forks source link

Fix Python SyntaxWarning in two f-string literals. #546

Closed statham-arm closed 1 month ago

statham-arm commented 1 month ago

Building on Ubuntu 24.04, multilib-generate.py provokes some SyntaxWarning messages from Python 3.12, because of cases where we'd written \+ in a string, intended to be emitted literally. 3.12 still does emit it literally, but prints a warning pointing out that we should properly escape the backslash, writing it as \\+.

statham-arm commented 1 month ago

Or rather, use backticks so that it will look sensible whether you read the commit message as Markdown or as plain text. I don't want to force people to look at commits on the website!