0023-misc-fix-dangerous-default-value-pylint-error-56288.patch
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 |
- |