diff options
| author | Michael Biebl <biebl@debian.org> | 2024-01-25 09:46:52 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2024-01-25 09:46:52 +0100 |
| commit | b6357ff41de179d0aa2e35a6d574e5749fe09002 (patch) | |
| tree | ff038e98f4569fa3ba217266e6d288410ed84cd4 /examples/python/gi/gmaincontext.py | |
| parent | 535ecf92edd8ad054ae8102a224c3dd8f3acf967 (diff) | |
| parent | 70e18d99b8e3e77bb37e218d7ac582130156f8ef (diff) | |
Update upstream source from tag 'upstream/1.45.90'
Update to upstream version '1.45.90' with Debian dir d723a85d75b9a8958dee17b97673a3fd9a80e18c
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: |