From d0f2ee4a39aae250e8f643baa83a6fea59f3b8a8 Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 11 Jun 2017 17:29:19 +0800 Subject: [PATCH] fix node-red nrgpio.py --- node-red/patch/nrgpio.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/node-red/patch/nrgpio.py b/node-red/patch/nrgpio.py index 8698039..9fa5b8a 100755 --- a/node-red/patch/nrgpio.py +++ b/node-red/patch/nrgpio.py @@ -53,7 +53,7 @@ if len(sys.argv) > 2: while True: try: - data = six.input() + data = six.moves.input() if 'close' in data: sys.exit(0) p.ChangeDutyCycle(float(data)) @@ -71,7 +71,7 @@ if len(sys.argv) > 2: while True: try: - data = six.input() + data = six.moves.input() if 'close' in data: sys.exit(0) elif float(data) == 0: @@ -93,7 +93,7 @@ if len(sys.argv) > 2: while True: try: - data = six.input() + data = six.moves.input() if 'close' in data: sys.exit(0) data = int(data) @@ -128,7 +128,7 @@ if len(sys.argv) > 2: while True: try: - data = six.input() + data = six.moves.input() if 'close' in data: sys.exit(0) except (EOFError, SystemExit): # hopefully always caused by us sigint'ing the program @@ -142,7 +142,7 @@ if len(sys.argv) > 2: while True: try: - data = six.input() + data = six.moves.input() if 'close' in data: sys.exit(0) data = int(data) @@ -172,7 +172,7 @@ if len(sys.argv) > 2: while True: try: - data = six.input() + data = six.moves.input() if 'close' in data: sys.exit(0) c = data.split(",")