python-application: Add upstream patch to fix deprecated use of collections.MutableMapping

This commit is contained in:
Tom Briden 2022-03-13 11:09:05 +00:00
parent e127e9c07d
commit d1bc53f91d
Signed by untrusted user: tombriden
GPG Key ID: B14A006402F52E9D
2 changed files with 28 additions and 0 deletions

View File

@ -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

View File

@ -15,4 +15,7 @@ MYOPTIONS=""
DEPENDENCIES=" DEPENDENCIES="
dev-python/zopeinterface[python_abis:*(-)?] dev-python/zopeinterface[python_abis:*(-)?]
" "
DEFAULT_SRC_PREPARE_PATCHES=(
"${FILES}"/08c503bdd1e128118e45fa50be256e27415bbd41.patch
)