temporary hack-revert, the original is now in branch "paths"
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 11 Jun 2023 12:22:57 +0000 (13:22 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 11 Jun 2023 12:22:57 +0000 (13:22 +0100)
Revert "insndb/core: fix operands iteration"

This reverts commit 84019f9487c696d066087cf7de7d049f883c2bd3.

src/openpower/insndb/core.py

index 1388fa21dbc2cae1b3e5a02382018f2225bdd315..973aac002776707372988360ff8dee3dcbea501c 100644 (file)
@@ -884,7 +884,7 @@ class Operands(Dict, datatype=object):
 
     @staticmethod
     def filter(cls):
-        return lambda pair: issubclass(pair[0], cls)
+        return lambda pair: isinstance(pair[0], cls)
 
     @cached_property
     def static(self):