You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.9 KiB
58 lines
1.9 KiB
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
|
|
|