whitespace - keep to under 80 chars
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 16 Aug 2022 23:39:11 +0000 (00:39 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 29 Aug 2022 19:38:10 +0000 (20:38 +0100)
src/openpower/decoder/selectable_int.py

index d4452bc079598674fbbfe1a2b3feb46320ef472c..5855cc8f7927f2f06481aaa51eb1393e817f0e9b 100644 (file)
@@ -484,7 +484,8 @@ class SelectableIntMappingMeta(type):
         def __get__(self, instance, owner):
             if instance is None:
                 return self.__field
-            return FieldSelectableInt(si=instance, br=self.__field).asint(msb0=True)
+            res = FieldSelectableInt(si=instance, br=self.__field)
+            return res.asint(msb0=True)
 
     class BitsProperty:
         def __init__(self, bits):
@@ -527,7 +528,8 @@ class SelectableIntMappingMeta(type):
             yield (key, value)
 
 
-class SelectableIntMapping(SelectableInt, metaclass=SelectableIntMappingMeta, bits=0):
+class SelectableIntMapping(SelectableInt, metaclass=SelectableIntMappingMeta,
+                                          bits=0):
     def __init__(self, value=0, bits=None):
         if isinstance(value, int) and bits is None:
             bits = self.__class__.bits