From 11f752bae21360593f1e260d8ba34dabfa709b2f Mon Sep 17 00:00:00 2001 From: Jordan Duty Date: Fri, 4 Apr 2025 02:02:34 -0700 Subject: [PATCH] correct collections deprecations --- web/core/context.py | 2 +- web/ext/base.py | 2 +- web/ext/serialize.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/core/context.py b/web/core/context.py index 5e7d916b..23c7c141 100644 --- a/web/core/context.py +++ b/web/core/context.py @@ -6,7 +6,7 @@ from __future__ import unicode_literals -from collections import MutableMapping +from collections.abc import MutableMapping # ## Mapping Class diff --git a/web/ext/base.py b/web/ext/base.py index a5d04d3f..86eab75e 100644 --- a/web/ext/base.py +++ b/web/ext/base.py @@ -13,7 +13,7 @@ pass try: - from collections import Generator + from collections.abc import Generator except ImportError: def _tmp(): yield None # pragma: no cover Generator = type(_tmp()) diff --git a/web/ext/serialize.py b/web/ext/serialize.py index 5ad768d2..371339a0 100644 --- a/web/ext/serialize.py +++ b/web/ext/serialize.py @@ -7,7 +7,7 @@ from __future__ import unicode_literals import pkg_resources -from collections import Mapping +from collections.abc import Mapping from marrow.package.host import PluginManager from web.core.compat import str