diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-05-02 22:25:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 22:25:52 (GMT) |
commit | cb6c6648bea57046d5ceff9382f19ebae024b918 (patch) | |
tree | b060b35fb235fac6b0ee6529ca8ee71a00ea9867 | |
parent | 5f45a9d3c3de97a4eafedb60ecea224a78bae52c (diff) | |
download | cpython-cb6c6648bea57046d5ceff9382f19ebae024b918.zip cpython-cb6c6648bea57046d5ceff9382f19ebae024b918.tar.gz cpython-cb6c6648bea57046d5ceff9382f19ebae024b918.tar.bz2 |
bpo-46547: remove leaking vars into `pydoc.Helper` namespace (#30957)
Fixes #90705
-rwxr-xr-x | Lib/pydoc.py | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2022-01-27-14-41-55.bpo-46547.JMyYz9.rst | 1 |
2 files changed, 2 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 ' 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 0000000..83065a7 --- /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. |