summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
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/inspect.py
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/inspect.py')
-rw-r--r--Lib/inspect.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index d47f5b7..eb45f81 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -156,6 +156,7 @@ from collections import namedtuple, OrderedDict
mod_dict = globals()
for k, v in dis.COMPILER_FLAG_NAMES.items():
mod_dict["CO_" + v] = k
+del k, v, mod_dict
# See Include/object.h
TPFLAGS_IS_ABSTRACT = 1 << 20