From: Luke Kenneth Casson Leighton Date: Sat, 10 Jun 2023 23:08:19 +0000 (+0100) Subject: reduce down one more line in walkmethod.__get__ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf0a6b4c00f2c10cdfc84dc8466217b73b40db4f;p=openpower-isa.git reduce down one more line in walkmethod.__get__ --- diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index d19f92a5..973aac00 100644 --- a/src/openpower/insndb/core.py +++ b/src/openpower/insndb/core.py @@ -63,9 +63,7 @@ class walkmethod: return super().__init__() def __get__(self, instance, owner): - entity = instance - if instance is None: - entity = owner + entity = owner if instance is None else instance return _functools.partial(self.__walk, entity)