Compare commits
No commits in common. 'i8' and 'c9' have entirely different histories.
@ -1,37 +0,0 @@
|
|||||||
From f9b10b97246f723cde725d77001308f9e6ed56d8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
||||||
Date: Wed, 24 May 2023 12:13:20 +0200
|
|
||||||
Subject: [PATCH] Don't use enhanced annotations
|
|
||||||
|
|
||||||
---
|
|
||||||
gnome_browser_connector/application.py | 2 --
|
|
||||||
gnome_browser_connector/connector.py | 2 --
|
|
||||||
2 files changed, 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/gnome_browser_connector/application.py b/gnome_browser_connector/application.py
|
|
||||||
index 8e57ef1..2069a34 100644
|
|
||||||
--- a/gnome_browser_connector/application.py
|
|
||||||
+++ b/gnome_browser_connector/application.py
|
|
||||||
@@ -1,7 +1,5 @@
|
|
||||||
# SPDX-License-Identifer: GPL-3.0-or-later
|
|
||||||
|
|
||||||
-from __future__ import annotations
|
|
||||||
-
|
|
||||||
import signal
|
|
||||||
import sys
|
|
||||||
import traceback
|
|
||||||
diff --git a/gnome_browser_connector/connector.py b/gnome_browser_connector/connector.py
|
|
||||||
index e72c432..a81b5ed 100644
|
|
||||||
--- a/gnome_browser_connector/connector.py
|
|
||||||
+++ b/gnome_browser_connector/connector.py
|
|
||||||
@@ -1,7 +1,5 @@
|
|
||||||
# SPDX-License-Identifer: GPL-3.0-or-later
|
|
||||||
|
|
||||||
-from __future__ import annotations
|
|
||||||
-
|
|
||||||
import json
|
|
||||||
import struct
|
|
||||||
import sys
|
|
||||||
--
|
|
||||||
2.40.0
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
|||||||
From 0619a89ea7cd42996cdd45dbe1bf8a0595ac2cec Mon Sep 17 00:00:00 2001
|
|
||||||
From: tigro <tigro@msvsphere-os.ru>
|
|
||||||
Date: Sun, 24 Dec 2023 22:00:07 +0300
|
|
||||||
Subject: [PATCH 2/2] Fix work with Python 3.6
|
|
||||||
|
|
||||||
---
|
|
||||||
gnome_browser_connector/application.py | 4 ++--
|
|
||||||
gnome_browser_connector/connector.py | 4 ++--
|
|
||||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/gnome_browser_connector/application.py b/gnome_browser_connector/application.py
|
|
||||||
index 2069a34..8322202 100644
|
|
||||||
--- a/gnome_browser_connector/application.py
|
|
||||||
+++ b/gnome_browser_connector/application.py
|
|
||||||
@@ -4,7 +4,7 @@ import signal
|
|
||||||
import sys
|
|
||||||
import traceback
|
|
||||||
from types import TracebackType
|
|
||||||
-from typing import Any, Callable, Optional, Sequence
|
|
||||||
+from typing import Type, Any, Callable, Optional, Sequence
|
|
||||||
|
|
||||||
from gi.repository import GLib, Gio
|
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ class Application(BaseGioApplication):
|
|
||||||
|
|
||||||
def default_exception_hook(
|
|
||||||
self,
|
|
||||||
- exception_type: type[BaseException],
|
|
||||||
+ exception_type: Type[BaseException],
|
|
||||||
value: BaseException,
|
|
||||||
tb: TracebackType
|
|
||||||
) -> None:
|
|
||||||
diff --git a/gnome_browser_connector/connector.py b/gnome_browser_connector/connector.py
|
|
||||||
index a81b5ed..9516609 100644
|
|
||||||
--- a/gnome_browser_connector/connector.py
|
|
||||||
+++ b/gnome_browser_connector/connector.py
|
|
||||||
@@ -3,7 +3,7 @@
|
|
||||||
import json
|
|
||||||
import struct
|
|
||||||
import sys
|
|
||||||
-from typing import Any, Optional
|
|
||||||
+from typing import Dict, Any, Optional
|
|
||||||
from gi.repository import Gio, GLib, GObject
|
|
||||||
|
|
||||||
from .base import ApplicationHandler, BaseGioApplication
|
|
||||||
@@ -189,7 +189,7 @@ class Connector(ApplicationHandler):
|
|
||||||
except IOError as e:
|
|
||||||
raise Exception(f'IOError occured: {e.strerror}')
|
|
||||||
|
|
||||||
- def process_request(self, request: dict[str, Any]) -> None:
|
|
||||||
+ def process_request(self, request: Dict[str, Any]) -> None:
|
|
||||||
self._log.debug("Execute: to %s", request['execute'])
|
|
||||||
|
|
||||||
if request['execute'] == 'initialize':
|
|
||||||
--
|
|
||||||
2.43.0
|
|
||||||
|
|
Loading…
Reference in new issue