From 727fcc5465b4607122a6946a88ed62ef1c0cb1c8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 11 Jun 2023 13:26:20 +0100 Subject: [PATCH] temporary hack-revert, the original is now in branch "paths" Revert "reduce down one more line in walkmethod.__get__" This reverts commit f6efd96b89fe55292dd5470ec35dd5263e4d3803. --- src/openpower/insndb/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index 973aac00..d19f92a5 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -63,7 +63,9 @@ class walkmethod: return super().__init__() def __get__(self, instance, owner): - entity = owner if instance is None else instance + entity = instance + if instance is None: + entity = owner return _functools.partial(self.__walk, entity) -- 2.30.2