summaryrefslogtreecommitdiff
path: root/Lib/http/cookiejar.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-02-03 12:20:08 +0300
committerGitHub <noreply@github.com>2022-02-03 11:20:08 +0200
commit0cbdd2131195b0d313762968f604e80a3e65ca9f (patch)
tree3f512c22e4ef6bbfc9d2246ad26446271e0e3ce7 /Lib/http/cookiejar.py
parent6394e981adaca2c0daa36c8701611e250d74024c (diff)
downloadcpython-git-0cbdd2131195b0d313762968f604e80a3e65ca9f.tar.gz
bpo-46565: `del` loop vars that are leaking into module namespaces (GH-30993)
Diffstat (limited to 'Lib/http/cookiejar.py')
-rw-r--r--Lib/http/cookiejar.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py
index eaa76c26b9..ee433c0f78 100644
--- a/Lib/http/cookiejar.py
+++ b/Lib/http/cookiejar.py
@@ -89,8 +89,7 @@ def _timegm(tt):
DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
-MONTHS_LOWER = []
-for month in MONTHS: MONTHS_LOWER.append(month.lower())
+MONTHS_LOWER = [month.lower() for month in MONTHS]
def time2isoz(t=None):
"""Return a string representing time in seconds since epoch, t.