1 From 261e0d119463c648baaf6c3d4be989ca710f9c05 Mon Sep 17 00:00:00 2001
2 From: Petr Nechaev <petr.nechaev@cogentembedded.com>
3 Date: Wed, 29 Jul 2015 18:00:08 +0300
4 Subject: [PATCH 5/9] ambctl: remove unnecessary dependency on glib
5 introspection Python binding
7 "gobject" from pygobject is enough for the task.
9 tools/ambctl.py | 9 +++++----
10 1 file changed, 5 insertions(+), 4 deletions(-)
12 diff --git a/tools/ambctl.py b/tools/ambctl.py
13 index cb091a7..b0b9fd4 100644
16 @@ -8,7 +8,8 @@ import fileinput
17 import termios, fcntl, os
20 -from gi.repository import GObject, GLib
24 from dbus.mainloop.glib import DBusGMainLoop
26 @@ -545,14 +546,14 @@ if args.command == "stdin":
27 oldflags = fcntl.fcntl(fd, fcntl.F_GETFL)
28 fcntl.fcntl(fd, fcntl.F_SETFL, oldflags | os.O_NONBLOCK)
30 - io_stdin = GLib.IOChannel(fd)
31 - io_stdin.add_watch(GLib.IO_IN, handle_keyboard, data)
32 + io_stdin = glib.IOChannel(fd)
33 + io_stdin.add_watch(glib.IO_IN, handle_keyboard, data)
39 - main_loop = GObject.MainLoop()
40 + main_loop = gobject.MainLoop()
42 except KeyboardInterrupt: