@@ -8,6 +8,7 @@ |
|
|
8 |
8 |
import sys |
9 |
9 |
import subprocess |
10 |
10 |
import threading |
|
11 |
+import warnings |
11 |
12 |
|
12 |
13 |
__all__ = ["Error", "open", "open_new", "open_new_tab", "get", "register"] |
13 |
14 |
|
@@ -629,6 +630,8 @@ class MacOSX(BaseBrowser): |
|
|
629 |
630 |
Internet System Preferences panel, will be used. |
630 |
631 |
""" |
631 |
632 |
def __init__(self, name): |
|
633 |
+warnings.warn(f'{self.__class__.__name__} is deprecated in 3.11' |
|
634 |
+' use MacOSXOSAScript instead.', DeprecationWarning, stacklevel=2) |
632 |
635 |
self.name = name |
633 |
636 |
|
634 |
637 |
def open(self, url, new=0, autoraise=True): |