mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-42255: Deprecate webbrowser.MacOSX from Python 3.11 (GH-27837)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
85ea2d6165
commit
bc1c49fa94
4 changed files with 15 additions and 2 deletions
|
@ -8,6 +8,7 @@ import shutil
|
|||
import sys
|
||||
import subprocess
|
||||
import threading
|
||||
import warnings
|
||||
|
||||
__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"]
|
||||
|
||||
|
@ -629,6 +630,8 @@ if sys.platform == 'darwin':
|
|||
Internet System Preferences panel, will be used.
|
||||
"""
|
||||
def __init__(self, name):
|
||||
warnings.warn(f'{self.__class__.__name__} is deprecated in 3.11'
|
||||
' use MacOSXOSAScript instead.', DeprecationWarning, stacklevel=2)
|
||||
self.name = name
|
||||
|
||||
def open(self, url, new=0, autoraise=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue