From 0e1bea631807a7d0512d9fc4eff536e7a919f1a6 Mon Sep 17 00:00:00 2001 From: Rahul Rahul Date: Wed, 27 Apr 2016 16:27:27 -0700 Subject: [PATCH] test: changed to use python3 Also changed 'raw'input' to 'input' based on python3 API --- test/simple-agent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple-agent b/test/simple-agent index 7f088fee..da814d3a 100755 --- a/test/simple-agent +++ b/test/simple-agent @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from gi.repository import GLib @@ -27,7 +27,7 @@ class Agent(dbus.service.Object): print("RequestPassphrase (%s)" % (path)) print("Service credentials requested, type cancel to cancel") - passphrase = raw_input('Answer: ') + passphrase = input('Answer: ') if not passphrase or passphrase == 'cancel': raise Canceled("canceled")