]> sigrok.org Git - libsigrokdecode.git/commit
Fix escape sequences treated as unicode laterals
authorSoeren Apel <redacted>
Tue, 1 Oct 2024 15:24:42 +0000 (17:24 +0200)
committerSoeren Apel <redacted>
Tue, 1 Oct 2024 15:24:42 +0000 (17:24 +0200)
commit03dc5f85050301d31aa0803e85bdda1374109b49
tree8993da70bc714df1a08b3f0ddc8faeb32ed6afcc
parent165bc5b75c70d66a5823271ac05220834251f9ff
Fix escape sequences treated as unicode laterals

Since Python 3.6, unrecognized escape sequences produce a DeprecationWarning.
Since Python 3.12, unrecognized escape sequences produce a SyntaxWarning.
In a future Python version they will be eventually a SyntaxError.

https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals

Fix these by using raw string literals.
decoders/arm_etmv3/pd.py
decoders/arm_itm/pd.py
decoders/ds1307/pd.py
decoders/spiflash/pd.py