python-hpilo icon indicating copy to clipboard operation
python-hpilo copied to clipboard

Multiple "SyntaxWarning: invalid escape sequence" in hpilo.py

Open AnthonyBe opened this issue 1 year ago • 1 comments

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()]

AnthonyBe avatar Jun 22 '24 12:06 AnthonyBe

Looks like this was fixed by this commit yesterday

bamill88 avatar Jul 09 '24 20:07 bamill88