about summary refs log tree commit diff
path: root/examples/python/gi/gmaincontext.py
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2024-01-25 09:46:18 +0100
committerMichael Biebl <biebl@debian.org>2024-01-25 09:46:18 +0100
commit70e18d99b8e3e77bb37e218d7ac582130156f8ef (patch)
treed40c587e6d3f0e094ff558e415f1bb9803643214 /examples/python/gi/gmaincontext.py
parentd4d8b2b91f7ba000d97a8b2aab48c85000c11314 (diff)
New upstream version 1.45.90 upstream/1.45.90
Diffstat (limited to 'examples/python/gi/gmaincontext.py')
-rwxr-xr-xexamples/python/gi/gmaincontext.py4
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: