Skip to content

Commit c725927

Browse files
committed
gh-137586: Update webbrowser.rst for MacOS class, fix version directives
1 parent c77f4b8 commit c725927

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

Doc/library/webbrowser.rst

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,15 @@ for the controller classes, all defined in this module.
172172
+------------------------+-----------------------------------------+-------+
173173
| ``'windows-default'`` | ``WindowsDefault`` | \(2) |
174174
+------------------------+-----------------------------------------+-------+
175-
| ``'macosx'`` | ``MacOSXOSAScript('default')`` | \(3) |
175+
| ``'MacOS'`` | ``MacOS('default')`` | \(3) |
176176
+------------------------+-----------------------------------------+-------+
177-
| ``'safari'`` | ``MacOSXOSAScript('safari')`` | \(3) |
177+
| ``'safari'`` | ``MacOS('safari')`` | \(3) |
178178
+------------------------+-----------------------------------------+-------+
179-
| ``'google-chrome'`` | ``Chrome('google-chrome')`` | |
179+
| ``'chrome'`` | ``MacOS('google chrome')`` | \(3) |
180+
+------------------------+-----------------------------------------+-------+
181+
| ``'firefox'`` | ``MacOS('firefox')`` | \(3) |
180182
+------------------------+-----------------------------------------+-------+
181-
| ``'chrome'`` | ``Chrome('chrome')`` | |
183+
| ``'google-chrome'`` | ``Chrome('google-chrome')`` | |
182184
+------------------------+-----------------------------------------+-------+
183185
| ``'chromium'`` | ``Chromium('chromium')`` | |
184186
+------------------------+-----------------------------------------+-------+
@@ -205,13 +207,6 @@ Notes:
205207
(4)
206208
Only on iOS.
207209

208-
.. deprecated:: 3.14
209-
:class:`!MacOSXOSAScript` is deprecated in favour of :class:`!MacOS`.
210-
Using :program:`/usr/bin/open` instead of :program:`osascript` is a
211-
security and usability improvement: :program:`osascript` may be blocked
212-
on managed systems due to its abuse potential as a general-purpose
213-
scripting interpreter.
214-
215210
.. versionadded:: 3.2
216211
A new :class:`!MacOSXOSAScript` class has been added
217212
and is used on Mac instead of the previous :class:`!MacOS` class.
@@ -228,6 +223,17 @@ Notes:
228223
.. versionchanged:: 3.13
229224
Support for iOS has been added.
230225

226+
.. versionadded:: next
227+
:class:`!MacOS` has been added as a replacement for :class:`!MacOSXOSAScript`,
228+
opening browsers via :program:`/usr/bin/open` instead of :program:`osascript`.
229+
230+
.. deprecated:: next
231+
:class:`!MacOSXOSAScript` is deprecated in favour of :class:`!MacOS`.
232+
Using :program:`/usr/bin/open` instead of :program:`osascript` is a
233+
security and usability improvement: :program:`osascript` may be blocked
234+
on managed systems due to its abuse potential as a general-purpose
235+
scripting interpreter.
236+
231237
Here are some simple examples::
232238

233239
url = 'https://docs.python.org/'

0 commit comments

Comments
 (0)