From: Nikita Sobolev Date: Mon, 2 May 2022 22:25:52 +0000 (+0300) Subject: bpo-46547: remove leaking vars into `pydoc.Helper` namespace (#30957) X-Git-Tag: v3.11.0b1~117 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb6c6648bea57046d5ceff9382f19ebae024b918;p=thirdparty%2FPython%2Fcpython.git bpo-46547: remove leaking vars into `pydoc.Helper` namespace (#30957) Fixes #90705 --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 12c2bb450e4f..297ff967a2ce 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 ' diff --git a/Misc/NEWS.d/next/Library/2022-01-27-14-41-55.bpo-46547.JMyYz9.rst b/Misc/NEWS.d/next/Library/2022-01-27-14-41-55.bpo-46547.JMyYz9.rst new file mode 100644 index 000000000000..83065a7a0603 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2022-01-27-14-41-55.bpo-46547.JMyYz9.rst @@ -0,0 +1 @@ +Remove variables leaking into ``pydoc.Helper`` class namespace.