From 17ddba90eb3a5efc6cd47672c0a2dd0423b2f3ad Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Sat, 13 Jan 2024 15:30:54 +0300 Subject: [PATCH] oppc/util: simplify empty statements --- src/openpower/oppc/pc_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpower/oppc/pc_util.py b/src/openpower/oppc/pc_util.py index 3127f64a..63ea9b1c 100644 --- a/src/openpower/oppc/pc_util.py +++ b/src/openpower/oppc/pc_util.py @@ -43,7 +43,7 @@ class Code(list): return "\n".join(lines) - def emit(self, stmt, level=0): + def emit(self, stmt="", level=0): item = ((level + self.__level), stmt) self.append(item) -- 2.30.2