Skip to content

Commit cb6c664

Browse files
authored
bpo-46547: remove leaking vars into pydoc.Helper namespace (#30957)
Fixes #90705
1 parent 5f45a9d commit cb6c664

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/pydoc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,7 @@ class Helper:
18911891
if topic not in topics:
18921892
topics = topics + ' ' + topic
18931893
symbols[symbol] = topics
1894+
del topic, symbols_, symbol, topics
18941895

18951896
topics = {
18961897
'TYPES': ('types', 'STRINGS UNICODE NUMBERS SEQUENCES MAPPINGS '
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove variables leaking into ``pydoc.Helper`` class namespace.

0 commit comments

Comments
 (0)