Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
OS-macstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-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
| defopen(self, url, new=0, autoraise=True): | |
| ifself.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") | |
| ifosapipeisNone: | |
| returnFalse | |
| osapipe.write(script) | |
| rc=osapipe.close() | |
| returnnotrc |
I think that this needs to be fixed.
Found this while looking at #113539
Linked PRs
Metadata
Metadata
Assignees
Labels
OS-macstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error