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:
parent
1ee86db211
commit
0e1bea6318
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user