gh-123494: Improve documentation for `webbrowser` return types (#123495)

Document the return value for ``webbrowser.open*()``.
This commit is contained in:
Aarni Koskela 2024-09-01 08:17:03 +03:00 committed by GitHub
parent 917283ada6
commit 0b6acfee04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -80,6 +80,9 @@ def open(url, new=0, autoraise=True):
- 1: a new browser window.
- 2: a new browser page ("tab").
If possible, autoraise raises the window (the default) or not.
If opening the browser succeeds, return True.
If there is a problem, return False.
"""
if _tryorder is None:
with _lock: