Projet

Général

Profil

0001-misc-import-Mapping-from-collections.abc-65764.patch

Benjamin Dauvergne, 30 mai 2022 13:35

Télécharger (1,16 ko)

Voir les différences:

Subject: [PATCH] misc: import Mapping from collections.abc (#65764)

 passerelle/base/models.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
passerelle/base/models.py
1 1
import base64
2
import collections
2
import collections.abc
3 3
import copy
4 4
import datetime
5 5
import inspect
......
960 960
            rl_message = message
961 961
            rl_args = args
962 962
            # Borrowed from python stdlib logging/__init__.py
963
            if rl_args and len(rl_args) == 1 and isinstance(rl_args[0], collections.Mapping) and rl_args[0]:
963
            if (
964
                rl_args
965
                and len(rl_args) == 1
966
                and isinstance(rl_args[0], collections.abc.Mapping)
967
                and rl_args[0]
968
            ):
964 969
                rl_args = rl_args[0]
965 970
            # End Borrow
966 971
            if rl_args:
967
-