[elbe-devel] [PATCH 06/25] py3: test/updated.py - convert to use input()
Manuel Traut
manut at linutronix.de
Fri Dec 1 16:51:03 CET 2017
use input instead of raw_input. raw_input is not available in py3 and a string
is expected here, so it's safe to use input for py3 & py2.
Signed-off-by: Manuel Traut <manut at linutronix.de>
---
test/updated.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/updated.py b/test/updated.py
index 10729669..2a132182 100755
--- a/test/updated.py
+++ b/test/updated.py
@@ -123,7 +123,7 @@ while 1:
sys.stdout.flush ()
try:
- n = int (raw_input ())
+ n = int (input ())
print control.service.apply_snapshot (snapshots [n])
except:
shutdown (monitor)
--
2.15.1
More information about the elbe-devel
mailing list