File: Revert-app-Setup-asyncio.patch

package info (click to toggle)
secrets 11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,744 kB
  • sloc: python: 6,509; xml: 7; makefile: 4
file content (36 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: =?utf-8?q?Jeremy_B=C3=ADcha?= <jeremy.bicha@canonical.com>
Date: Sun, 13 Apr 2025 12:00:42 -0400
Subject: Revert "app: Setup asyncio"

This reverts commit a31bea25506c8cd416b49e146d375345b1efcadc.

asyncio requires pygobject 3.52
---
 gsecrets/application.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/gsecrets/application.py b/gsecrets/application.py
index 62920c8..2a37af5 100644
--- a/gsecrets/application.py
+++ b/gsecrets/application.py
@@ -1,11 +1,9 @@
 # SPDX-License-Identifier: GPL-3.0-only
 from __future__ import annotations
 
-import asyncio
 import logging
 from gettext import gettext as _
 
-from gi.events import GLibEventLoopPolicy
 from gi.repository import Adw, Gio, GLib, Gtk, GtkSource
 
 from gsecrets import const
@@ -27,8 +25,6 @@ class Application(Adw.Application):
             register_session=True,
         )
 
-        asyncio.set_event_loop_policy(GLibEventLoopPolicy())
-
         # debug level logging option
         self.add_main_option(
             "debug",