seveas / python-hpilo

Accessing the HP iLO XML interface from python
https://seveas.github.io/python-hpilo
Other
321 stars 102 forks source link

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

Open AnthonyBe opened 2 months ago

AnthonyBe commented 2 months ago

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()]
bamill88 commented 1 month ago

Looks like this was fixed by this commit yesterday