-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
OS-macstdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
All other browsers do this:
Line 173 in f108468
sys.audit("webbrowser.open", url) Line 193 in f108468
sys.audit("webbrowser.open", url) Line 258 in f108468
sys.audit("webbrowser.open", url) Line 348 in f108468
sys.audit("webbrowser.open", url) Line 557 in f108468
sys.audit("webbrowser.open", url)
But, not MacOSXOSAScript
:
Lines 576 to 593 in f108468
def open(self, url, new=0, autoraise=True): | |
if self.name == 'default': | |
script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser | |
else: | |
script = f''' | |
tell application "%s" | |
activate | |
open location "%s" | |
end | |
'''%(self.name, url.replace('"', '%22')) | |
osapipe = os.popen("osascript", "w") | |
if osapipe is None: | |
return False | |
osapipe.write(script) | |
rc = osapipe.close() | |
return not rc |
I think that this needs to be fixed.
Found this while looking at #113539
Linked PRs
Metadata
Metadata
Assignees
Labels
OS-macstdlibPython modules in the Lib dirPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error