From: Dmitry Selyutin Date: Sat, 13 Jan 2024 12:30:54 +0000 (+0300) Subject: oppc/util: simplify empty statements X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7a95344e8f002220c5814a6321d44fa1302a6bf;p=openpower-isa.git oppc/util: simplify empty statements --- 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)