You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Python 3.14 SyntaxWarnings for invalid escape sequences
Convert regular strings with escape sequences to raw
strings (r'...') to fix SyntaxWarnings that appear with
Python 3.14. These warnings occur because escape sequences
like \[, \(, $, \d, \w are invalid in regular strings and
will not work in future Python versions.
Files modified:
- common/OPexpect.py: Fixed regex patterns with \[, \d
- common/OpTestIPMI.py: Fixed regex patterns with \(
- common/OpTestUtil.py: Fixed prompt patterns and sed
commands with \[, $, \x1b
- common/OpTestHost.py: Fixed regex patterns
- testcases/*.py: Fixed various regex patterns and escape sequences
All changes use raw strings (r'...') which treat backslashes literally,
making them suitable for regex patterns and shell commands. The changes
are backward compatible with older Python versions.
Signed-off-by: Sachin Sant <sachinp@linux.ibm.com>
0 commit comments