mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-46547: remove leaking vars into pydoc.Helper
namespace (#30957)
Fixes #90705
This commit is contained in:
parent
5f45a9d3c3
commit
cb6c6648be
2 changed files with 2 additions and 0 deletions
|
@ -1891,6 +1891,7 @@ class Helper:
|
||||||
if topic not in topics:
|
if topic not in topics:
|
||||||
topics = topics + ' ' + topic
|
topics = topics + ' ' + topic
|
||||||
symbols[symbol] = topics
|
symbols[symbol] = topics
|
||||||
|
del topic, symbols_, symbol, topics
|
||||||
|
|
||||||
topics = {
|
topics = {
|
||||||
'TYPES': ('types', 'STRINGS UNICODE NUMBERS SEQUENCES MAPPINGS '
|
'TYPES': ('types', 'STRINGS UNICODE NUMBERS SEQUENCES MAPPINGS '
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Remove variables leaking into ``pydoc.Helper`` class namespace.
|
Loading…
Add table
Add a link
Reference in a new issue