mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-42066: CookieJar cookies should not be sorted (GH-22745)
This commit is contained in:
parent
031f1e6040
commit
615b24c80b
3 changed files with 9 additions and 12 deletions
|
@ -1224,14 +1224,9 @@ class DefaultCookiePolicy(CookiePolicy):
|
|||
_debug(" %s does not path-match %s", req_path, path)
|
||||
return False
|
||||
|
||||
def vals_sorted_by_key(adict):
|
||||
keys = sorted(adict.keys())
|
||||
return map(adict.get, keys)
|
||||
|
||||
def deepvalues(mapping):
|
||||
"""Iterates over nested mapping, depth-first, in sorted order by key."""
|
||||
values = vals_sorted_by_key(mapping)
|
||||
for obj in values:
|
||||
"""Iterates over nested mapping, depth-first"""
|
||||
for obj in list(mapping.values()):
|
||||
mapping = False
|
||||
try:
|
||||
obj.items
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue