]> granicus.if.org Git - python/commitdiff
Step 2 in putting the MacOS toolbox modules in a package: issue a DepracationWarning...
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 25 Aug 2001 11:53:43 +0000 (11:53 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 25 Aug 2001 11:53:43 +0000 (11:53 +0000)
45 files changed:
Mac/Lib/lib-compat/AE.py
Mac/Lib/lib-compat/App.py
Mac/Lib/lib-compat/Appearance.py
Mac/Lib/lib-compat/AppleEvents.py
Mac/Lib/lib-compat/Balloons.py
Mac/Lib/lib-compat/CF.py
Mac/Lib/lib-compat/Cm.py
Mac/Lib/lib-compat/Components.py
Mac/Lib/lib-compat/ControlAccessor.py
Mac/Lib/lib-compat/Controls.py
Mac/Lib/lib-compat/Ctl.py
Mac/Lib/lib-compat/Dialogs.py
Mac/Lib/lib-compat/Dlg.py
Mac/Lib/lib-compat/Drag.py
Mac/Lib/lib-compat/Dragconst.py
Mac/Lib/lib-compat/Events.py
Mac/Lib/lib-compat/Evt.py
Mac/Lib/lib-compat/Fm.py
Mac/Lib/lib-compat/Fonts.py
Mac/Lib/lib-compat/Help.py
Mac/Lib/lib-compat/Icn.py
Mac/Lib/lib-compat/Icons.py
Mac/Lib/lib-compat/List.py
Mac/Lib/lib-compat/Lists.py
Mac/Lib/lib-compat/MacTextEditor.py
Mac/Lib/lib-compat/MediaDescr.py
Mac/Lib/lib-compat/Menu.py
Mac/Lib/lib-compat/Menus.py
Mac/Lib/lib-compat/Mlte.py
Mac/Lib/lib-compat/QDOffscreen.py
Mac/Lib/lib-compat/Qd.py
Mac/Lib/lib-compat/Qdoffs.py
Mac/Lib/lib-compat/Qt.py
Mac/Lib/lib-compat/QuickDraw.py
Mac/Lib/lib-compat/QuickTime.py
Mac/Lib/lib-compat/Res.py
Mac/Lib/lib-compat/Resources.py
Mac/Lib/lib-compat/Scrap.py
Mac/Lib/lib-compat/Snd.py
Mac/Lib/lib-compat/Sndihooks.py
Mac/Lib/lib-compat/Sound.py
Mac/Lib/lib-compat/TE.py
Mac/Lib/lib-compat/TextEdit.py
Mac/Lib/lib-compat/Win.py
Mac/Lib/lib-compat/Windows.py

index f30e2a1d0ed6466832e327f44ae34d1fc64f9097..6d8b6d0866a92fcc7baef5199b143635dbd1ad32 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.AE import *
index c6db44a904d29d73fc1f201622bd475b9351400e..f0aa9c7d3961c1baeb1870ff62dedf5ed5ec94f0 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.App import *
index 1cedc1ef4388e5db973fa570edf41f0aba67be5d..3bd5dbedb141caf4ce24a6b91cc93dbf686c7722 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Appearance import *
index 4cf9e40af6d538f64ef149a0f2a93a5843fe1ba6..2db9a9bf405c49dfd9137d62063c7daf10e07f92 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.AppleEvents import *
index fab32a7c1fbe8170f618c847896df08765edc3af..2a84932823864f65a7604c5036c011256dfff640 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Balloons import *
index 190aaa4956b614ccc61d02f4f4dae314c68def52..8ecf212de8bbaeec3e06d776264b3ec95923cc08 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.CF import *
index 38865025e57ad19776c81309843a57f84ab04735..16a16dcf73414614d1fabdfbfa4cd197e102a3bd 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Cm import *
index 904b6bdd27e36bd41d75d54a1888865fd4d573ed..cd9e04c587f10d0ee37de8df06f3ebb7ce649a5f 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Components import *
index 29019f8b138f97c785c580279d9482798926424c..5859da68cad37d9fef1ff192fd94b8addcfc3158 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.ControlAccessor import *
index 4c7a63ce54ef9597ee9e8bc830c427e2a5d19509..05b81d29da39d926376c85ad28deaf2fe6c8a11a 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Controls import *
index ac92302b4303ea107b362fcc4f31781cb2935cc3..fc6b8554c9ee457ee283727ce590800bdd93c786 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Ctl import *
index 9f724f7874116ac36a783001824944576febe160..dc8b35f027cae1da7589d3137dd4a5440641727c 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Dialogs import *
index 57a353409f53cf767259698cd54991f3d33110bb..7c84af2590af3a2e64538f740704d115233a761b 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Dlg import *
index 4e24db08986f4b52ac33b0d0b0e1933edaae38ee..30fe93dab1ba063805a6f6e091d7ba0e02fe852c 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Drag import *
index 6a787b9aa4f4cc69914925054b40af696924ee15..9a3b7254a1d5a73c033bfe1bfd7ee3abf8b8a635 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Dragconst import *
index 47b38342d69e1adbc399fa4ac15052baaf64c6fe..a3d14b3e5847a580b2db41e745fbed05eb688910 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Events import *
index 015810c2f98075d93a6226acb36eef54b0f45334..a9e9cd572dc9beaef18de8fa9932dfb5ad352e68 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Evt import *
index 5c4cf600c63d097123400481db07d0b0fd405cd8..7653f9cb025b9c9bef23d5b3ef40d3759513fe2c 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Fm import *
index f0a9a52241c577a89dc5edbb495e2485fba97aa5..08ace636ea0ccdba48ca5d2ec26f3846aa8c7ba3 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Fonts import *
index fb2ac271d9178e15bf6570f8074812f2a8ced90e..f9b3cb22596daf632a87544e99a96c9bab833cd4 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Help import *
index 0e3b44d44e0e6c7d9f7c49ec380499b6fc8fc84a..270dbc5ab4e2a2a9dbd2b63c5bc05a8f3379cbcb 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Icn import *
index 2a310c0f409dcb518c335529d655c154be778515..d211a2ad41f279fd45357d00b7ff287a6d900dfd 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Icons import *
index 0b9fe565c7c648649e4c48850bf8054a730188dc..91423ed119ee25846dcc46e29d0fc63e2af551f6 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.List import *
index 55155995dfaf143537dab66a2673e7743c1f26be..6b610b18826d66a704117d1002d3bd0f0283234f 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Lists import *
index d9f7226f630580f4571c2e5514a1804f86882b6d..ba19e27a6b029e2927bf7c703ccd567d679cfd56 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.MacTextEditor import *
index a188c80c48ce771399bf5d5a4a45d90d4d3ea1ca..3cf69129f713662878fefc1c4bcda2b7115ce587 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.MediaDescr import *
index 9163f6d9c3a71753e098b97efe8ddf48eaa30940..f2210cba970c8cfc60c14856cf3237b916bcf093 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Menu import *
index a3c6cfcc71215228cf64cd820c9830e7c0cbf073..073a6d396900af3427dc60e1a70d7e223636aebf 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Menus import *
index 2e354cdf7a2be5ce2d58b7c59e0a5e87827a20eb..bc15dc05c9da33df913ab4af547fbad1cbbfb9ec 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Mlte import *
index e902e4b6c967caa4dfa4aaa4d8fa54deec28ecd5..a13c620ac2db28765fe3f9731d9361d09bf6f063 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.QDOffscreen import *
index 74e3b93cd7efb996b7a9029bce3c206e0d5f53a7..ccfa80d2928cf0beca3238a217e372d02381145a 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Qd import *
index 4f7744cd926263c9233998718c621d50c21c583f..b1f033b590caa92c7625ffbde9311a82584841af 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Qdoffs import *
index a694792c00f672370f653f5f32b70520cb8c4bb2..1b91fabfabff7f98832f6d481d015bfc4b5a3ef2 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Qt import *
index d543183b249f1667bbade2b1b6fd10a754f5f783..d92fda598eeb02d6aba674494974eaef85c6dae1 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.QuickDraw import *
index 80e1bcc67174ba697258c3b1c82c3e9fbd776b54..e80bdba64d6c50e058814032a530150e744383b9 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.QuickTime import *
index ea3d20a963ea3f14f66b90bead78d61d2af57070..e43f49bd8e7fcf66ba55befaf7c6bdcedb8d9d96 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Res import *
index e4540d9ab44af9b5a412391dae5c8a45750d10dd..ec60421e3f6dbf054ccbcee9dbf461434b43c868 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Resources import *
index a2192aa49b81c78fdc9dde27a5bcc5bbd9b7a42e..2af9d5939e122bce077b1111e83d89773a2021b6 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Scrap import *
index 9c3000425159596b67c5bdb7df27bbffdbe110e2..0d2920cfe1db713b6d823ccd88006aa7fbe562ef 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Snd import *
index be704773f9ee1f626e6f5c2bdc09259e19696097..8a98520f6037fd258d7a50053684b0bd022cee14 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Sndihooks import *
index fc3c3bb3f1522c1ddbf46ceca18f328260c11620..4666c036bf0d89fa018df2286900b96b904343c7 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Sound import *
index fcadaf873088e879b349f1c0f50d04e0d1829b7c..018313fbb26bc2da3d3bcfe78c5a73816f74b2d5 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.TE import *
index b1c3fbf67d77dd98e9e8e2cfbac7e1fd7a925626..5add4e4f3dbae30ac91f1580605dfe3afb96cda5 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.TextEdit import *
index f8e64dd10b22b20c4815d6ec095989fa537d4cc7..3982dea7191dab64f03b4b2a4a4e6bdc54205aa0 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Win import *
index 06da2f14e4313d00f6a95ba3a9c0d9dbdbc73527..852a0b75c045fc38d6b277bc934fed26df67fa4b 100644 (file)
@@ -1 +1,4 @@
+import warnings
+warnings.warn("The %s module is deprecated; use Carbon.%s"%(__name__, __name__),
+       DeprecationWarning, stacklevel=2)
 from Carbon.Windows import *