This is an automated email from the ASF dual-hosted git repository. gcruz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit 0ebdfd095af7bf0ea7c2ac25c01d2ae15b8598de Author: Dillon Walls <[email protected]> AuthorDate: Wed Mar 8 02:15:39 2023 +0000 [#8503] deprecation warnings - fixed using collections instead of collections.abc --- Allura/allura/lib/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Allura/allura/lib/utils.py b/Allura/allura/lib/utils.py index 396ad7ccf..c1c27e118 100644 --- a/Allura/allura/lib/utils.py +++ b/Allura/allura/lib/utils.py @@ -17,7 +17,7 @@ from __future__ import annotations import base64 -from collections.abc import Iterable +from collections.abc import Iterable, Mapping, MutableMapping from contextlib import contextmanager import time import string @@ -421,7 +421,7 @@ class TruthyCallable: return NotImplemented -class TransformedDict(collections.MutableMapping): +class TransformedDict(MutableMapping): """ A dictionary which applies an arbitrary @@ -807,7 +807,7 @@ def smart_str(s): def generate_smart_str(params): - if isinstance(params, collections.Mapping): + if isinstance(params, Mapping): params_list = params.items() else: params_list = params
