summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-05-02 22:25:52 (GMT)
committerGitHub <noreply@github.com>2022-05-02 22:25:52 (GMT)
commitcb6c6648bea57046d5ceff9382f19ebae024b918 (patch)
treeb060b35fb235fac6b0ee6529ca8ee71a00ea9867 /Lib
parent5f45a9d3c3de97a4eafedb60ecea224a78bae52c (diff)
downloadcpython-cb6c6648bea57046d5ceff9382f19ebae024b918.zip
cpython-cb6c6648bea57046d5ceff9382f19ebae024b918.tar.gz
cpython-cb6c6648bea57046d5ceff9382f19ebae024b918.tar.bz2
bpo-46547: remove leaking vars into `pydoc.Helper` namespace (#30957)
Fixes #90705
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/pydoc.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 12c2bb4..297ff96 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1891,6 +1891,7 @@ class Helper:
if topic not in topics:
topics = topics + ' ' + topic
symbols[symbol] = topics
+ del topic, symbols_, symbol, topics
topics = {
'TYPES': ('types', 'STRINGS UNICODE NUMBERS SEQUENCES MAPPINGS '