File: Drop-proxy_tools-dependency.patch

package info (click to toggle)
python-pywebview 6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 33,436 kB
  • sloc: python: 10,230; javascript: 3,185; java: 522; cs: 130; sh: 16; makefile: 3
file content (54 lines) | stat: -rw-r--r-- 1,613 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
From: =?utf-8?q?Jeremy_B=C3=ADcha?= <jeremy.bicha@canonical.com>
Date: Mon, 1 Apr 2024 14:50:27 -0400
Subject: Drop proxy_tools dependency
Forwarded: not-needed
Last-Update: 2025-08-26

It is not packaged in Debian yet
---
--- a/webview/__init__.py
+++ b/webview/__init__.py
@@ -21,8 +21,6 @@ from collections.abc import Iterable, Ma
 from typing import Any, Callable
 from uuid import uuid4

-from proxy_tools import module_property
-
 import webview.http as http
 from webview.errors import JavascriptException, WebViewException
 from webview.event import Event
@@ -83,17 +81,14 @@ def _setup_logger():

 logger = _setup_logger()

-@module_property
 def OPEN_DIALOG():
     logger.warning("OPEN_DIALOG is deprecated and will be removed in a future version. Use 'FileDialog.OPEN' instead.")
     return 10

-@module_property
 def FOLDER_DIALOG():
     logger.warning("FOLDER_DIALOG is deprecated and will be removed in a future version. Use 'FileDialog.FOLDER' instead.")
     return 20

-@module_property
 def SAVE_DIALOG():
     logger.warning("SAVE_DIALOG is deprecated and will be removed in a future version. Use 'FileDialog.SAVE' instead.")
     return 30
@@ -129,7 +124,6 @@ _state = ImmutableDict({
 })


-@module_property
 def DRAG_REGION_SELECTOR():
     logger.warning("DRAG_REGION_SELECTOR is deprecated and will be removed in a future version. Use 'settings[\"DRAG_REGION_SELECTOR\"]' instead.")
     return settings['DRAG_REGION_SELECTOR']
@@ -484,7 +478,6 @@ def active_window() -> Window | None:
     return None


-@module_property
 def screens() -> list[Screen]:
     global renderer, guilib