Commit 7f27beb1 authored by Hanno Schlichting's avatar Hanno Schlichting

You almost never need type()

parent 78534fa5
...@@ -63,7 +63,7 @@ def make_key(catalog, request): ...@@ -63,7 +63,7 @@ def make_key(catalog, request):
for name in values: for name in values:
v = keydict.get(name, []) v = keydict.get(name, [])
if type(v) in [type(tuple()), type(list())]: if isinstance(v, (tuple, list)):
v = list(v) v = list(v)
v.sort() v.sort()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment