3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

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

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