Merge pull request 'python-application: Add upstream patch to fix deprecated use of collections.MutableMapping' (#87) from tombriden/hasufell-repository:python-application-fix into master
Reviewed-on: #87
This commit is contained in:
commit
190312ad0c
@ -0,0 +1,25 @@
|
|||||||
|
Upstream: Yes
|
||||||
|
|
||||||
|
From 08c503bdd1e128118e45fa50be256e27415bbd41 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Adrian Georgescu <ag@ag-projects.com>
|
||||||
|
Date: Sat, 1 Jan 2022 15:19:37 +0000
|
||||||
|
Subject: [PATCH] collections.MutableMapping was deprecated since Python 3.3
|
||||||
|
|
||||||
|
---
|
||||||
|
application/python/weakref.py | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/application/python/weakref.py b/application/python/weakref.py
|
||||||
|
index a785a7e..38fd664 100644
|
||||||
|
--- a/application/python/weakref.py
|
||||||
|
+++ b/application/python/weakref.py
|
||||||
|
@@ -1,7 +1,8 @@
|
||||||
|
|
||||||
|
import weakref
|
||||||
|
|
||||||
|
-from collections import MutableMapping, deque
|
||||||
|
+from collections.abc import MutableMapping
|
||||||
|
+from collections import deque
|
||||||
|
from copy import deepcopy
|
||||||
|
from threading import local
|
||||||
|
|
@ -15,4 +15,7 @@ MYOPTIONS=""
|
|||||||
DEPENDENCIES="
|
DEPENDENCIES="
|
||||||
dev-python/zopeinterface[python_abis:*(-)?]
|
dev-python/zopeinterface[python_abis:*(-)?]
|
||||||
"
|
"
|
||||||
|
DEFAULT_SRC_PREPARE_PATCHES=(
|
||||||
|
"${FILES}"/08c503bdd1e128118e45fa50be256e27415bbd41.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user