diff options
Diffstat (limited to 'examples/python/gi/gmaincontext.py')
| -rwxr-xr-x | examples/python/gi/gmaincontext.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/python/gi/gmaincontext.py b/examples/python/gi/gmaincontext.py index 64a5620b..25283f18 100755 --- a/examples/python/gi/gmaincontext.py +++ b/examples/python/gi/gmaincontext.py @@ -71,6 +71,7 @@ def error_is_cancelled(e): ############################################################################### + # A Context manager for running a mainloop. Of course, this does # not do anything magically. You can run the context/mainloop without # this context object. @@ -265,7 +266,6 @@ def create_nmc(dbus_connection): def make_call(nmc): - log("[make_call]: make some async D-Bus call") if not nmc: @@ -273,7 +273,6 @@ def make_call(nmc): return with MainLoopRun("make_call", nmc.get_main_context(), 1) as r: - # There are two reasons why async operations are preferable with # D-Bus and libnm: # @@ -405,7 +404,6 @@ def destroy_nmc(nmc_holder, destroy_mode): raise Exception("Failure to destroy NMClient: something keeps it alive") else: - if destroy_mode == 1: ctx = GLib.MainContext.default() else: |