diff options
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r-- | Lib/cookielib.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py index b27f63c..7fd883f 100644 --- a/Lib/cookielib.py +++ b/Lib/cookielib.py @@ -1171,8 +1171,7 @@ class DefaultCookiePolicy(CookiePolicy): def vals_sorted_by_key(adict): - keys = adict.keys() - keys.sort() + keys = sorted(adict.keys()) return map(adict.get, keys) def deepvalues(mapping): |