oppc/util: simplify empty statements
authorDmitry Selyutin <ghostmansd@gmail.com>
Sat, 13 Jan 2024 12:30:54 +0000 (15:30 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 16 Jan 2024 19:10:07 +0000 (22:10 +0300)
src/openpower/oppc/pc_util.py

index 3127f64a7c95e92f0fe870f92a2007add33549d7..63ea9b1ce4b3a75b5b78d577f636097bd9012947 100644 (file)
@@ -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)