reduce code linecount slightly
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Sep 2021 18:48:32 +0000 (19:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 Sep 2021 18:48:32 +0000 (19:48 +0100)
src/openpower/test/state.py

index 57f77fcff41936944eddccf7f008d6dc10c82afe..1c91670d6fe123d4efad0288098d00930ccd0f2b 100644 (file)
@@ -129,21 +129,10 @@ class ExpectedState(State):
         self.ov = ov
         self.ca = ca
 
-    def get_intregs(self):
-        if False:
-            yield
-
-    def get_crregs(self):
-        if False:
-            yield
-
-    def get_xregs(self):
-        if False:
-            yield
-
-    def get_pc(self):
-        if False:
-            yield
+    def get_intregs(self): if False: yield
+    def get_crregs(self): if False: yield
+    def get_xregs(self): if False: yield
+    def get_pc(self): if False: yield
 
 
 global state_factory