From: Luke Kenneth Casson Leighton Date: Sun, 11 Jun 2023 12:34:40 +0000 (+0100) Subject: commit f6efd96b89fe55292dd5470ec35dd5263e4d3803 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86f6f7da233abad98ce4163a03fd91dbfd0c9950;p=openpower-isa.git commit f6efd96b89fe55292dd5470ec35dd5263e4d3803 Author: Luke Kenneth Casson Leighton Date: Sun Jun 11 00:08:19 2023 +0100 reduce down one more line in walkmethod.__get__ --- diff --git a/src/openpower/insndb/core.py b/src/openpower/insndb/core.py index d77b2f0d..3d539e06 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)