Control: tags -1 upstream patch

This appears to be easy to fix, but this fix has not been tested (this package does not run its tests, and I don't know if they'd cover this if it did).

While upstream closed their bug, they don't appear to have actually fixed it; the same fix would probably work there.

This package has an existing debian/4.4.3-4 tag in Salsa that was never uploaded (and given this bug, probably shouldn't be uploaded as-is). Hence, we *might* want to call this version 4.4.3-5.

(It's also missing the debian/4.4.3-3 tag, which should be on 609ef47a4cc827f6152fa191ed531e6ac8a16f51.)

--- a/hpilo_cli
+++ b/hpilo_cli
@@ -251,9 +251,9 @@ def hpilo_help
     else:
         if value in ilo_methods:
             import re, textwrap
-            func = getattr(hpilo.Ilo, value).im_func
-            code = func.func_code
+            func = getattr(hpilo.Ilo, value)
+            code = func.__code__
             args = ''
             if code.co_argcount > 1:
                 args = code.co_varnames[:code.co_argcount]
-                defaults = func.func_defaults or []
+                defaults = func.__defaults__ or []

Reply via email to