Skip to content

Commit

Permalink
SlidShowDemo2 Fix integer division python2/python3
Browse files Browse the repository at this point in the history
Signed-off-by: Noel Power <noel.power@suse.com>
  • Loading branch information
noelpower committed Feb 8, 2023
1 parent 9d4759b commit a63646f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/SlideShowDemo2.py
Expand Up @@ -290,8 +290,8 @@ def twoDigits(self,n):
return ycpbuiltins.sformat("0%1", n) if (n < 10) else ycpbuiltins.sformat("%1", n)

def formatTime(self, seconds):
hours = (seconds / 3600)
minutes = (seconds / 60)
hours = (seconds // 3600)
minutes = (seconds // 60)
seconds = (seconds % 60)
return ycpbuiltins.sformat(
"%1:%2:%3",
Expand Down

0 comments on commit a63646f

Please sign in to comment.