mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 14:24:48 +03:00
Fixed python 2.6 compatibility.
This commit is contained in:
parent
3ab17a3b29
commit
b8c71872da
|
@ -189,9 +189,9 @@ except ImportError:
|
|||
|
||||
def _make_key(args, kwds, typed,
|
||||
kwd_mark = (object(),),
|
||||
fasttypes = {int, str, frozenset, type(None)},
|
||||
fasttypes = set((int, str, frozenset, type(None))),
|
||||
sorted=sorted, tuple=tuple, type=type, len=len):
|
||||
'Make a cache key from optionally typed positional and keyword arguments'
|
||||
"""Make a cache key from optionally typed positional and keyword arguments"""
|
||||
key = args
|
||||
if kwds:
|
||||
sorted_items = sorted(kwds.items())
|
||||
|
|
Loading…
Reference in New Issue
Block a user