From 0cbdd2131195b0d313762968f604e80a3e65ca9f Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 3 Feb 2022 12:20:08 +0300 Subject: bpo-46565: `del` loop vars that are leaking into module namespaces (GH-30993) --- Lib/http/cookiejar.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/http/cookiejar.py') 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. -- cgit v1.2.1