[pygobject/benzea/gio-asyncio] test




commit 589650ba8c3ebfcabc6033728998ea00ff23d0c0
Author: Benjamin Berg <bberg redhat com>
Date:   Fri Nov 19 17:10:30 2021 +0100

    test

 gi/events.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/events.py b/gi/events.py
index d713893f..ac675f8c 100644
--- a/gi/events.py
+++ b/gi/events.py
@@ -256,13 +256,13 @@ class GLibEventLoopPolicy(events.AbstractEventLoopPolicy):
         # Note: We cannot attach it to ctx, as getting the default will always
         #       return a new python wrapper. But, we can use hash() as that returns
         #       the pointer to the C structure.
-        print(f"ctx=0x{hash(self._context):X}")
+        print(f"ctx=0x{hash(ctx):X}")
         try:
             loop = self._loops[hash(ctx)]
             if not loop.is_closed():
                 print(f"got existing loop {loop}")
                 return loop
-            print(f"loop {0x{loop} is closed")
+            print(f"loop 0x{loop} is closed")
         except KeyError:
             print("no loop for context")
             pass


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]