mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 20:50:11 +01:00
tests: avoid calling GLib.IOChannel.unix_new()
The Ubuntu 12.04 introspection data don't contain it. However, the default constructor works just well and even looks a bit more Python-y.
This commit is contained in:
parent
ccb0ca4493
commit
b9b7bb1958
1 changed files with 1 additions and 1 deletions
|
|
@ -1148,7 +1148,7 @@ def main():
|
|||
sys.exit(1)
|
||||
|
||||
# Watch stdin; if it closes, assume our parent has crashed, and exit
|
||||
io = GLib.IOChannel.unix_new(0)
|
||||
io = GLib.IOChannel(0)
|
||||
io.add_watch(GLib.IOCondition.HUP, stdin_cb)
|
||||
|
||||
# also quit after inactivity to ensure we don't stick around if the above fails somehow
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue