diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-01 23:16:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 23:16:14 (GMT) |
commit | 730c873efd9aecbfa2e788faf021a3523ad6a65e (patch) | |
tree | 78c78b90fe161d4895d4d07d4f8b7e4d7d788b67 /Python/ceval_macros.h | |
parent | 8738c5bceea309944dc4f18e49cf90e871ecbe65 (diff) | |
download | cpython-730c873efd9aecbfa2e788faf021a3523ad6a65e.zip cpython-730c873efd9aecbfa2e788faf021a3523ad6a65e.tar.gz cpython-730c873efd9aecbfa2e788faf021a3523ad6a65e.tar.bz2 |
[3.12] gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) (#106322)
gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934)
If the output arg to Helper() is a stream rather than the default None, which means 'page to stdout', the ImportError from pydoc.resolve is currently not caught in pydoc.doc. The same error is caught when output is None.
---------
(cherry picked from commit 0530f4f64629ff97f3feb7524da0833b9535e8b6)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Python/ceval_macros.h')
0 files changed, 0 insertions, 0 deletions