summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/pgen2
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-02-03 09:20:08 (GMT)
committerGitHub <noreply@github.com>2022-02-03 09:20:08 (GMT)
commit0cbdd2131195b0d313762968f604e80a3e65ca9f (patch)
tree3f512c22e4ef6bbfc9d2246ad26446271e0e3ce7 /Lib/lib2to3/pgen2
parent6394e981adaca2c0daa36c8701611e250d74024c (diff)
downloadcpython-0cbdd2131195b0d313762968f604e80a3e65ca9f.zip
cpython-0cbdd2131195b0d313762968f604e80a3e65ca9f.tar.gz
cpython-0cbdd2131195b0d313762968f604e80a3e65ca9f.tar.bz2
bpo-46565: `del` loop vars that are leaking into module namespaces (GH-30993)
Diffstat (limited to 'Lib/lib2to3/pgen2')
-rw-r--r--Lib/lib2to3/pgen2/grammar.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/lib2to3/pgen2/grammar.py b/Lib/lib2to3/pgen2/grammar.py
index 6a4d575..5d550ae 100644
--- a/Lib/lib2to3/pgen2/grammar.py
+++ b/Lib/lib2to3/pgen2/grammar.py
@@ -186,3 +186,4 @@ for line in opmap_raw.splitlines():
if line:
op, name = line.split()
opmap[op] = getattr(token, name)
+del line, op, name