28 lines
931 B
Diff
28 lines
931 B
Diff
From 64e061c688d9f6d495c6d18cbd17baabda752ad6 Mon Sep 17 00:00:00 2001
|
|
From: Leonidas Spyropoulos <artafinde@gmail.com>
|
|
Date: Fri, 3 Dec 2021 14:06:58 +0000
|
|
Subject: [PATCH] MutableMapping moved to collections.abc module
|
|
|
|
https://docs.python.org/3.10/library/collections.abc.html
|
|
Signed-off-by: Leonidas Spyropoulos <artafinde@gmail.com>
|
|
---
|
|
Namcap/package.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/Namcap/package.py b/Namcap/package.py
|
|
index 2da5b1d..1cb026c 100644
|
|
--- a/Namcap/package.py
|
|
+++ b/Namcap/package.py
|
|
@@ -46,7 +46,7 @@ def strip_depend_info(value):
|
|
raise ValueError("Invalid dependency specification")
|
|
return m.group(1)
|
|
|
|
-class PacmanPackage(collections.MutableMapping):
|
|
+class PacmanPackage(collections.abc.MutableMapping):
|
|
strings = ['base', 'name', 'version', 'desc', 'url', 'builddate',
|
|
'packager', 'install', 'filename', 'csize', 'isize',
|
|
'pkgfunction']
|
|
--
|
|
GitLab
|
|
|