diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-06-09 08:52:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 08:52:58 (GMT) |
commit | 947ec7ab02e7673956eb7f235c330a49f11e157a (patch) | |
tree | 77da5b6fa454c031606cd684b0cee7bcd93ad5ee /Lib | |
parent | 3e525d22128cf040b3fd164f52cc6ae20ca58455 (diff) | |
download | cpython-947ec7ab02e7673956eb7f235c330a49f11e157a.zip cpython-947ec7ab02e7673956eb7f235c330a49f11e157a.tar.gz cpython-947ec7ab02e7673956eb7f235c330a49f11e157a.tar.bz2 |
gh-105545: Remove deprecated `MacOSXOSAScript._name` (gh-105546)
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/webbrowser.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index c1bd667..01a82fb 100755 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -578,20 +578,6 @@ if sys.platform == 'darwin': def __init__(self, name='default'): super().__init__(name) - @property - def _name(self): - warnings.warn(f'{self.__class__.__name__}._name is deprecated in 3.11' - f' use {self.__class__.__name__}.name instead.', - DeprecationWarning, stacklevel=2) - return self.name - - @_name.setter - def _name(self, val): - warnings.warn(f'{self.__class__.__name__}._name is deprecated in 3.11' - f' use {self.__class__.__name__}.name instead.', - DeprecationWarning, stacklevel=2) - self.name = val - def open(self, url, new=0, autoraise=True): if self.name == 'default': script = 'open location "%s"' % url.replace('"', '%22') # opens in default browser |