gh-104804: Remove webbrowser.MacOSX class, deprecated in Python 3.11 #104816
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Closes #104804.
Remove
webbrowser.MacOSX class, deprecated in Python 3.11 in gh-86421.Also fix Sphinx warnings in
webbrowser.rst(helps gh-101100):I don't think we need to define
envvars forPATHorKDEDIRWe could define
.. envvar:: BROWSERright before the first mention, but it looks a little out of place having aBROWSERbefore the third paragraph. Thoughts?I also don't think we need to define the dozen or so
Mozilla,Operaetc. classes. They're listed in the table that shows which type name corresponds to each class, and some of them have extra details like how they're instantiated (Mozilla('mozilla'),GenericBrowser('lynx')), so plain literal text makes sense here. Repeating each class below would be a lot of duplication for little benefit, especially for this rather short page.https://cpython-previews--104816.org.readthedocs.build/en/104816/library/webbrowser.html
📚 Documentation preview 📚: https://cpython-previews--104816.org.readthedocs.build/