Description: Fix SyntaxWarning for invalid escape sequence in re.sub
 Replaced the regular expression '\s+' with a raw string r'\s+' to
 resolve the SyntaxWarning: invalid escape sequence '\s'.
Bug-Debian: https://bugs.debian.org/1109265
Forwarded: https://github.com/seveas/python-hpilo/pull/302
Author: Giacomo Paviano <pavianogiacomo@gmail.com>
Reviewed-By: Andrea Pappacoda <tachi@debian.org>
Last-Update: 2025-07-22

--- a/hpilo_cli
+++ b/hpilo_cli
@@ -266,7 +266,7 @@ def hpilo_help(option, opt_str, value, parser, exitcode=0):
             doc = re.sub(r':[a-z]+:`(.*?)`', r'\1', doc)
             if 'API note' in doc:
                 doc = doc[:doc.find('API note')].strip()
-            doc = re.sub('\s+', ' ', doc)
+            doc = re.sub(r'\s+', ' ', doc)
             print(textwrap.fill(doc, 80))
         else:
             print("No such method: %s" % value)
