[Python-checkins] gh-105745: Fix open method of webbrowser.Konqueror (#105746)

vstinner webhook-mailer at python.org
Wed Jun 14 06:29:23 EDT 2023


https://github.com/python/cpython/commit/e5d45b7444733861153d6e8959c34323fd361322
commit: e5d45b7444733861153d6e8959c34323fd361322
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: vstinner <vstinner at python.org>
date: 2023-06-14T12:29:16+02:00
summary:

gh-105745: Fix open method of webbrowser.Konqueror (#105746)

files:
A Misc/NEWS.d/next/Library/2023-06-14-10-27-34.gh-issue-105745.l1ttOQ.rst
M Lib/webbrowser.py

diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 4fc9470051c1..8b0628745c57 100755
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -390,15 +390,6 @@ def open(self, url, new=0, autoraise=True):
             return (p.poll() is None)
 
 
-    def open(self, url, new=0, autoraise=True):
-        sys.audit("webbrowser.open", url)
-        if new:
-            ok = self._remote("LOADNEW " + url)
-        else:
-            ok = self._remote("LOAD " + url)
-        return ok
-
-
 class Edge(UnixBrowser):
     "Launcher class for Microsoft Edge browser."
 
diff --git a/Misc/NEWS.d/next/Library/2023-06-14-10-27-34.gh-issue-105745.l1ttOQ.rst b/Misc/NEWS.d/next/Library/2023-06-14-10-27-34.gh-issue-105745.l1ttOQ.rst
new file mode 100644
index 000000000000..7df7c5a79ec6
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2023-06-14-10-27-34.gh-issue-105745.l1ttOQ.rst
@@ -0,0 +1 @@
+Fix ``webbrowser.Konqueror.open`` method.



More information about the Python-checkins mailing list