From 8af0b58f5ea9e8cc33ffaf73b442cdd2e13a7621 Mon Sep 17 00:00:00 2001 From: Vratko Polak Date: Wed, 27 Nov 2024 14:19:53 +0100 Subject: 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 --- resources/libraries/python/autogen/Regenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/libraries/python/autogen/Regenerator.py') diff --git a/resources/libraries/python/autogen/Regenerator.py b/resources/libraries/python/autogen/Regenerator.py index ce8f21d4b6..69cacbdb27 100644 --- a/resources/libraries/python/autogen/Regenerator.py +++ b/resources/libraries/python/autogen/Regenerator.py @@ -720,7 +720,7 @@ class Regenerator: Log-like prints are emitted to sys.stderr. - :param pattern: Glob pattern to select files. Example: \*-ndrpdr.robot + :param pattern: Glob pattern to select files. Example: \\*-ndrpdr.robot :param protocol: String determining minimal frame size. Default: "ip4" :type pattern: str :type protocol: str -- cgit