summaryrefslogtreecommitdiffstats
path: root/Lib/cookielib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r--Lib/cookielib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py
index 4552412..ee31f46 100644
--- a/Lib/cookielib.py
+++ b/Lib/cookielib.py
@@ -1255,8 +1255,7 @@ class CookieJar:
"""
# add cookies in order of most specific (ie. longest) path first
- def decreasing_size(a, b): return cmp(len(b.path), len(a.path))
- cookies.sort(decreasing_size)
+ cookies.sort(key=lambda a: len(a.path), reverse=True)
version_set = False