Projet

Général

Profil

0023-misc-fix-dangerous-default-value-pylint-error-56288.patch

Lauréline Guérin, 30 août 2021 17:54

Télécharger (1,23 ko)

Voir les différences:

Subject: [PATCH 23/31] misc: fix dangerous-default-value pylint error (#56288)

 combo/utils/cache.py     | 1 +
 combo/utils/signature.py | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
combo/utils/cache.py
18 18

  
19 19

  
20 20
# _make_key and _HashedSeq imported/adapted from functools from Python 3.2+
21
# pylint: disable=dangerous-default-value
21 22
def _make_key(
22 23
    args,
23 24
    kwds,
combo/utils/signature.py
55 55
    return hash.digest()
56 56

  
57 57

  
58
def check_request_signature(django_request, keys=[]):
58
def check_request_signature(django_request, keys=None):
59
    keys = keys or []
59 60
    query_string = django_request.META['QUERY_STRING']
60 61
    if not query_string:
61 62
        return False
62
-