fix(uavcan): silence DroneCAN DSDL compiler build warnings (#26757)

Fix Python DeprecationWarning for invalid escape sequence in pyratemp.py
and replace deprecated FindPythonInterp CMake module in libuavcan.
This commit is contained in:
Jacob Dahl 2026-03-16 14:49:21 -08:00 committed by GitHub
parent 0b2e554202
commit d04858efe0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,10 @@ endif ()
project(libuavcan)
find_package(PythonInterp)
if(NOT PYTHON_EXECUTABLE)
find_package(Python3 COMPONENTS Interpreter)
set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(COMPILER_IS_GCC_COMPATIBLE 1)

View File

@ -278,7 +278,7 @@ def escape(s, format=HTML):
- `NONE`: nothing is replaced
- `HTML`: replace &<>'" by &...;
- `LATEX`: replace \#$%&_{}~^
- `LATEX`: replace \\#$%&_{}~^
- `MAIL_HEADER`: escape non-ASCII mail-header-contents
:Returns:
the escaped string in unicode