summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-06 19:01:12 (GMT)
committerGitHub <noreply@github.com>2021-05-06 19:01:12 (GMT)
commit329a47f0524e9d3f43f1e28c4f9e7c088662c030 (patch)
treea92afbcb676782945be9e0b6120ca0a085816303 /Lib
parent55b78ce3c4e23abe4f27bf16d7968f8851532e47 (diff)
downloadcpython-329a47f0524e9d3f43f1e28c4f9e7c088662c030.zip
cpython-329a47f0524e9d3f43f1e28c4f9e7c088662c030.tar.gz
cpython-329a47f0524e9d3f43f1e28c4f9e7c088662c030.tar.bz2
bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947)
Automerge-Triggered-By: GH:gpshead
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/webbrowser.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 6023c1e..e980497 100755
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -532,6 +532,10 @@ def register_standard_browsers():
# OS X can use below Unix support (but we prefer using the OS X
# specific stuff)
+ if sys.platform == "serenityos":
+ # SerenityOS webbrowser, simply called "Browser".
+ register("Browser", None, BackgroundBrowser("Browser"))
+
if sys.platform[:3] == "win":
# First try to use the default Windows browser
register("windows-default", WindowsDefault)