modm-io / modm

modm: a C++23 library generator for AVR and ARM Cortex-M devices
https://modm.io
Mozilla Public License 2.0
720 stars 128 forks source link

Fix Python syntax #1149

Closed rleh closed 4 months ago

rleh commented 4 months ago

Since Python 3.6 backslash-character pairs that are not valid escape sequences are deprecated and generate a SyntaxWarning: invalid escape sequence warning. This is fixed by using raw string.

The same problem is also fixed in modm-devices submodule, see modm-io/modm-devices#109.