We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c1320 commit da98dd7Copy full SHA for da98dd7
pdoc/cli.py
@@ -432,7 +432,9 @@ def main(_args=None):
432
global args
433
args = _args or parser.parse_args()
434
435
- warnings.simplefilter("once", DeprecationWarning)
+ # If warnings not externally managed, show deprecation warnings
436
+ if not sys.warnoptions:
437
+ warnings.simplefilter("once", DeprecationWarning)
438
439
if args.close_stdin:
440
sys.stdin.close()
0 commit comments