From c027ab9fbc1a8e8c9e76bcd123df1ad7696307c2 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 11 Mar 2014 17:39:22 +0100 Subject: test: Convert to Python 3 Change raw_input() to input() and unicode to str. This is *not* compatible with Python 2. Update the hashbangs to run with Python 3. --- test/test-gnss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test-gnss') diff --git a/test/test-gnss b/test/test-gnss index aa0b160c..6ae64dbd 100755 --- a/test/test-gnss +++ b/test/test-gnss @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from gi.repository import GLib import sys @@ -40,7 +40,7 @@ def print_menu(): def stdin_handler(channel, condition, gnss, path): in_key = os.read(channel.unix_get_fd(), 160).rstrip().decode('UTF-8') if in_key == '0': - xml = raw_input('type the element and press enter: ') + xml = input('type the element and press enter: ') try: gnss.SendPositioningElement(dbus.String(xml)) print("ok") -- cgit v1.2.3