Skip to content

Commit

Permalink
make simple print statements python3 compatible
Browse files Browse the repository at this point in the history
maybe we should just convert these to y2debug statements

Signed-off-by: Noel Power <noel.power@suse.com>
  • Loading branch information
noelpower committed Feb 8, 2023
1 parent e33d39e commit e064688
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/MultiProgressMeter2.py
Expand Up @@ -110,7 +110,7 @@ def main(self):

if widgetClass == "RadioButton":
currentUnitID = UI.QueryWidget("unit", "CurrentButton")
print "type %s"%type(currentUnitID)
print ("type %s"%type(currentUnitID))
#if Ops.is_term?(currentUnitID):
if isinstance (currentUnitID, YCPTerm):
unit = currentUnitID.value(0)
Expand Down
6 changes: 3 additions & 3 deletions examples/Table-icons.py
Expand Up @@ -43,9 +43,9 @@ def main(self):

test = Term("icon", "22x22/apps/" + "iconName")
test = Term("cell",test)
print "working %s"%test.toString()
print ("working %s"%test.toString())
test = Term("cell", Term("icon", "22x22/apps/" + "iconName"))
print "not working %s"%test.toString()
print ("not working %s"%test.toString())


for iconName in ycpbuiltins.foreach(iconList):
Expand Down Expand Up @@ -90,7 +90,7 @@ def readIconDir(dir):


filtered.sort()
print "returning %d items"%len(filtered)
print ("returning %d items"%len(filtered))
return copy.deepcopy(filtered)

TableIconsClient().main()
Expand Down
2 changes: 1 addition & 1 deletion examples/WidgetExists.py
Expand Up @@ -59,7 +59,7 @@ def Summary():
summary = summary + "\nBottom button exists"
else:
summary = summary + "\nNo bottom button"
print "returning \n%s"%summary
print ("returning \n%s"%summary)
return summary

# Remove button with given id and update summary.
Expand Down

0 comments on commit e064688

Please sign in to comment.