bpo-46547: remove leaking vars into pydoc.Helper namespace (#30957)

Fixes #90705
This commit is contained in:
Nikita Sobolev 2022-05-03 01:25:52 +03:00 committed by GitHub
parent 5f45a9d3c3
commit cb6c6648be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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 '

View File

@ -0,0 +1 @@
Remove variables leaking into ``pydoc.Helper`` class namespace.