fix(pylint): Escape backslash properly 40/41940/2
authorVratko Polak <vrpolak@cisco.com>
Wed, 27 Nov 2024 13:19:53 +0000 (14:19 +0100)
committerVratko Polak <vrpolak@cisco.com>
Wed, 27 Nov 2024 13:33:25 +0000 (13:33 +0000)
commit8af0b58f5ea9e8cc33ffaf73b442cdd2e13a7621
tree9ab1b0549931c8cbe90e8234a2294b7469dbd2e4
parent64e0f7f310c4267b8d3ec5b92218086bffd0d3f1
fix(pylint): Escape backslash properly

When backslach is used to escape Robot dollar or docstring asterisk,
and the backslash is in normal (not raw) Python (doc)string,
the backslash itself needs to be escaped by a second backslash.

The old code happened to work well enough,
but now it leads to a loud SyntaxWarning in console log,
so it is worth fixing faster than other pylint violations.

Change-Id: Id36fa0a393267f2cdced1229a30eaff8357c4ac4
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
resources/libraries/python/CpuUtils.py
resources/libraries/python/autogen/Regenerator.py