mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-16 15:20:42 +01:00
test: changed to use python3
Also changed 'raw'input' to 'input' based on python3 API
This commit is contained in:
parent
1ee86db211
commit
0e1bea6318
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
|
|
||||||
from gi.repository import GLib
|
from gi.repository import GLib
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ class Agent(dbus.service.Object):
|
|||||||
print("RequestPassphrase (%s)" % (path))
|
print("RequestPassphrase (%s)" % (path))
|
||||||
|
|
||||||
print("Service credentials requested, type cancel to cancel")
|
print("Service credentials requested, type cancel to cancel")
|
||||||
passphrase = raw_input('Answer: ')
|
passphrase = input('Answer: ')
|
||||||
|
|
||||||
if not passphrase or passphrase == 'cancel':
|
if not passphrase or passphrase == 'cancel':
|
||||||
raise Canceled("canceled")
|
raise Canceled("canceled")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user