mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
gh-113543: Make sure that MacOSXOSAScript
sends webbrowser.open
audit event (#113544)
This commit is contained in:
parent
f108468970
commit
fba324154e
2 changed files with 3 additions and 0 deletions
|
@ -574,6 +574,7 @@ if sys.platform == 'darwin':
|
|||
super().__init__(name)
|
||||
|
||||
def open(self, url, new=0, autoraise=True):
|
||||
sys.audit("webbrowser.open", url)
|
||||
if self.name == 'default':
|
||||
script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue