diff options
author | Vratko Polak <vrpolak@cisco.com> | 2024-11-27 14:19:53 +0100 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2024-11-27 13:33:25 +0000 |
commit | 8af0b58f5ea9e8cc33ffaf73b442cdd2e13a7621 (patch) | |
tree | 9ab1b0549931c8cbe90e8234a2294b7469dbd2e4 /resources/libraries/python/autogen | |
parent | 64e0f7f310c4267b8d3ec5b92218086bffd0d3f1 (diff) |
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>
Diffstat (limited to 'resources/libraries/python/autogen')
-rw-r--r-- | resources/libraries/python/autogen/Regenerator.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |