python-hpilo
python-hpilo copied to clipboard
Multiple "SyntaxWarning: invalid escape sequence" in hpilo.py
Ref https://github.com/home-assistant/core/issues/120144 Issue observed in HA iLO integration.
[2024-06-22 17:45:25.114 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/hpilo.py:204: SyntaxWarning: invalid escape sequence '\P'
self.hponcfg = 'C:\Program Files\HP Lights-Out Configuration Utility\cpqlocfg.exe'
2024-06-22 17:45:25.116 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/hpilo.py:336: SyntaxWarning: invalid escape sequence '\s'
body = re.sub('\s+', ' ', body).strip()
2024-06-22 17:45:25.118 WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.12/site-packages/hpilo.py:432: SyntaxWarning: invalid escape sequence '\$'
pre, name, post = re.compile(b'(.*)\$EMBED:(.*)\$(.*)', re.DOTALL).match(xml).groups()]
Looks like this was fixed by this commit yesterday