From a63646f4ff54d5c514753f3a3445d728f99f6032 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Mon, 28 Feb 2022 10:15:13 +0000 Subject: [PATCH] SlidShowDemo2 Fix integer division python2/python3 Signed-off-by: Noel Power --- examples/SlideShowDemo2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/SlideShowDemo2.py b/examples/SlideShowDemo2.py index 5393c49..d2ead7b 100644 --- a/examples/SlideShowDemo2.py +++ b/examples/SlideShowDemo2.py @@ -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",