diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2015-05-15 19:33:32 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2015-06-02 12:30:03 +0200 |
commit | b9b7bb19586934dda19516ed37f50ca91d2e0f1b (patch) | |
tree | a5ad89cec114400d798b89043c23c8feed302edd | |
parent | ccb0ca4493d8276c3a14b8c764c7fecc4fedc1fa (diff) | |
download | NetworkManager-b9b7bb19586934dda19516ed37f50ca91d2e0f1b.tar.gz |
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.
-rwxr-xr-x | tools/test-networkmanager-service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py index 50803c8871..6035fecd5c 100755 --- a/tools/test-networkmanager-service.py +++ b/tools/test-networkmanager-service.py @@ -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 |