mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning in the compatibility modules.
This commit is contained in:
parent
6af5bbb565
commit
6dba6bc0a2
45 changed files with 135 additions and 0 deletions
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.AE import *
|
from Carbon.AE import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.App import *
|
from Carbon.App import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Appearance import *
|
from Carbon.Appearance import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.AppleEvents import *
|
from Carbon.AppleEvents import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Balloons import *
|
from Carbon.Balloons import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.CF import *
|
from Carbon.CF import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Cm import *
|
from Carbon.Cm import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Components import *
|
from Carbon.Components import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.ControlAccessor import *
|
from Carbon.ControlAccessor import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Controls import *
|
from Carbon.Controls import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Ctl import *
|
from Carbon.Ctl import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Dialogs import *
|
from Carbon.Dialogs import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Dlg import *
|
from Carbon.Dlg import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Drag import *
|
from Carbon.Drag import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Dragconst import *
|
from Carbon.Dragconst import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Events import *
|
from Carbon.Events import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Evt import *
|
from Carbon.Evt import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Fm import *
|
from Carbon.Fm import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Fonts import *
|
from Carbon.Fonts import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Help import *
|
from Carbon.Help import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Icn import *
|
from Carbon.Icn import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Icons import *
|
from Carbon.Icons import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.List import *
|
from Carbon.List import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Lists import *
|
from Carbon.Lists import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.MacTextEditor import *
|
from Carbon.MacTextEditor import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.MediaDescr import *
|
from Carbon.MediaDescr import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Menu import *
|
from Carbon.Menu import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Menus import *
|
from Carbon.Menus import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Mlte import *
|
from Carbon.Mlte import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.QDOffscreen import *
|
from Carbon.QDOffscreen import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Qd import *
|
from Carbon.Qd import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Qdoffs import *
|
from Carbon.Qdoffs import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Qt import *
|
from Carbon.Qt import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.QuickDraw import *
|
from Carbon.QuickDraw import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.QuickTime import *
|
from Carbon.QuickTime import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Res import *
|
from Carbon.Res import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Resources import *
|
from Carbon.Resources import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Scrap import *
|
from Carbon.Scrap import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Snd import *
|
from Carbon.Snd import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Sndihooks import *
|
from Carbon.Sndihooks import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Sound import *
|
from Carbon.Sound import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.TE import *
|
from Carbon.TE import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.TextEdit import *
|
from Carbon.TextEdit import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Win import *
|
from Carbon.Win import *
|
||||||
|
|
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
|
import warnings
|
||||||
|
warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
|
||||||
|
DeprecationWarning, stacklevel=2)
|
||||||
from Carbon.Windows import *
|
from Carbon.Windows import *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue