Define raw_input() in Python 3 (#473)

Many thanks
This commit is contained in:
cclauss
2018-08-12 19:58:11 +02:00
committed by Dave Conway-Jones
parent 335c46ac06
commit 8fe2478a0b
7 changed files with 36 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
#!/usr/bin/python
# Import library functions we need
from __future__ import print_function
import sys
import os
import unicornhat as UH
@@ -64,4 +65,4 @@ while True:
except (EOFError, SystemExit): # hopefully always caused by us sigint'ing the program
sys.exit(0)
except Exception as ex:
print "bad data: "+data
print("bad data: "+data)