2to3 gumb.py
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 Dec 2023 11:41:40 +0000 (12:41 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 2 Dec 2023 11:41:40 +0000 (12:41 +0100)
gumb.py

diff --git a/gumb.py b/gumb.py
index 4aa8574..1d1eac4 100755 (executable)
--- a/gumb.py
+++ b/gumb.py
@@ -36,7 +36,7 @@ def main():
                     continue
         else:
              odplayao = False
-             print "button true"
+             print("button true")
              # the button isn't being pressed, so turn off the green LED
              # and turn on the red LED
 #            GPIO.output(24,False)
@@ -45,7 +45,7 @@ def main():
 
              time.sleep(0.1)
 
-    print "button pushed"
+    print("button pushed")
 
     GPIO.cleanup()