[Python-checkins] bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947)

miss-islington webhook-mailer at python.org
Thu May 6 15:01:22 EDT 2021


https://github.com/python/cpython/commit/329a47f0524e9d3f43f1e28c4f9e7c088662c030
commit: 329a47f0524e9d3f43f1e28c4f9e7c088662c030
branch: main
author: Linus Groh <mail at linusgroh.de>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-05-06T12:01:12-07:00
summary:

bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947)



Automerge-Triggered-By: GH:gpshead

files:
A Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst
M Lib/webbrowser.py
M Misc/ACKS

diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 6023c1e13841d2..e980497450d66c 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)
diff --git a/Misc/ACKS b/Misc/ACKS
index 9f861b374221dc..480a486a24c0b0 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -641,6 +641,7 @@ Andrea Griffini
 Duncan Grisby
 Olivier Grisel
 Fabian Groffen
+Linus Groh
 Eric Groo
 Daniel Andrade Groppe
 Dag Gruneau
diff --git a/Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst b/Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst
new file mode 100644
index 00000000000000..f734bdb0bce09f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-05-06-16-01-55.bpo-44059.GF5r6O.rst
@@ -0,0 +1 @@
+Register the SerenityOS Browser in the :mod:`webbrowser` module.



More information about the Python-checkins mailing list