From cb8638bb11f4bfba4faeeba2a5d9c4fb3ed5681e Mon Sep 17 00:00:00 2001 From: Ruairidh MacLeod Date: Mon, 13 Dec 2021 10:05:19 +0000 Subject: [PATCH 1/2] fixup collections import --- src/common/Smi_Common_Python/SmiServices/Dicom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Smi_Common_Python/SmiServices/Dicom.py b/src/common/Smi_Common_Python/SmiServices/Dicom.py index ca40144e9..79b7ebed9 100644 --- a/src/common/Smi_Common_Python/SmiServices/Dicom.py +++ b/src/common/Smi_Common_Python/SmiServices/Dicom.py @@ -1,7 +1,7 @@ """ Functions to assist with decoding DICOM files representing from JSON as Python dicts """ -from collections import Mapping +from collections.abc import Mapping import re import pydicom From 81d995bc5195b26aade263589df6a56cd11b55d1 Mon Sep 17 00:00:00 2001 From: Ruairidh MacLeod Date: Mon, 13 Dec 2021 10:06:30 +0000 Subject: [PATCH 2/2] add news file --- news/981-bugfix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/981-bugfix.md diff --git a/news/981-bugfix.md b/news/981-bugfix.md new file mode 100644 index 000000000..e02fdc0a6 --- /dev/null +++ b/news/981-bugfix.md @@ -0,0 +1 @@ +Fix deprecated python collections import for py310+