diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2014-03-11 17:39:21 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2014-03-11 19:33:16 -0500 |
commit | ad4f90684fac01be21789df40882fb9869c3cd41 (patch) | |
tree | 175888fc4f175c0ee7d673c9a30d3dc802a1ca0c /test/test-push-notification | |
parent | 5bf5cf8ddd83f632aa85ddbdc6c2dec075854e75 (diff) | |
download | ofono-ad4f90684fac01be21789df40882fb9869c3cd41.tar.bz2 |
test: Move from static gobject bindings to GI
Use GLib gobject-introspection bindings so that we can also use the
scripts with Python 3.
Diffstat (limited to 'test/test-push-notification')
-rwxr-xr-x | test/test-push-notification | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-push-notification b/test/test-push-notification index d05ec35c..ecc6afbf 100755 --- a/test/test-push-notification +++ b/test/test-push-notification @@ -1,6 +1,6 @@ #!/usr/bin/python -import gobject +from gi.repository import GLib import sys import dbus @@ -43,7 +43,7 @@ if __name__ == '__main__': pn.RegisterAgent(path) print("Agent registered") - mainloop = gobject.MainLoop() + mainloop = GLib.MainLoop() try: mainloop.run() |