summaryrefslogtreecommitdiffstats
path: root/Lib/_LWPCookieJar.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/_LWPCookieJar.py')
-rw-r--r--Lib/_LWPCookieJar.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/_LWPCookieJar.py b/Lib/_LWPCookieJar.py
index 2a4fa7b..6720958 100644
--- a/Lib/_LWPCookieJar.py
+++ b/Lib/_LWPCookieJar.py
@@ -37,8 +37,7 @@ def lwp_cookie_str(cookie):
if cookie.comment: h.append(("comment", cookie.comment))
if cookie.comment_url: h.append(("commenturl", cookie.comment_url))
- keys = cookie._rest.keys()
- keys.sort()
+ keys = sorted(cookie._rest.keys())
for k in keys:
h.append((k, str(cookie._rest[k])))