test: changed to use python3

Also changed 'raw'input' to 'input' based on python3 API
This commit is contained in:
Rahul Rahul 2016-04-27 16:27:27 -07:00 committed by Denis Kenzior
parent 1ee86db211
commit 0e1bea6318
1 changed files with 2 additions and 2 deletions

View File

@ -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")