summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-12 21:42:13 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-05-12 21:42:13 (GMT)
commit236819310db3fe6f2fb22d48b780fa6ec253b6c7 (patch)
treece5ca9792381d9ced99e8e871324891ddbeb0e28 /Lib/plat-mac
parentf9b54c24114b15ff920249244fe361aee276c248 (diff)
downloadcpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.zip
cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.tar.gz
cpython-236819310db3fe6f2fb22d48b780fa6ec253b6c7.tar.bz2
Add warnings to and deprecated all those Mac modules
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r--Lib/plat-mac/Audio_mac.py3
-rw-r--r--Lib/plat-mac/Carbon/__init__.py3
-rw-r--r--Lib/plat-mac/EasyDialogs.py3
-rw-r--r--Lib/plat-mac/FrameWork.py3
-rw-r--r--Lib/plat-mac/MiniAEFrame.py3
-rw-r--r--Lib/plat-mac/PixMapWrapper.py4
-rw-r--r--Lib/plat-mac/aepack.py3
-rw-r--r--Lib/plat-mac/aetools.py3
-rw-r--r--Lib/plat-mac/aetypes.py3
-rw-r--r--Lib/plat-mac/applesingle.py4
-rw-r--r--Lib/plat-mac/appletrawmain.py4
-rwxr-xr-xLib/plat-mac/appletrunner.py3
-rw-r--r--Lib/plat-mac/argvemulator.py3
-rw-r--r--Lib/plat-mac/bgenlocations.py3
-rw-r--r--Lib/plat-mac/buildtools.py7
-rwxr-xr-xLib/plat-mac/bundlebuilder.py3
-rw-r--r--Lib/plat-mac/cfmfile.py7
-rw-r--r--Lib/plat-mac/findertools.py4
-rw-r--r--Lib/plat-mac/gensuitemodule.py3
-rw-r--r--Lib/plat-mac/ic.py3
-rw-r--r--Lib/plat-mac/icopen.py3
-rw-r--r--Lib/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Finder/__init__.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Netscape/__init__.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/SystemEvents/__init__.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py4
-rw-r--r--Lib/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py4
-rw-r--r--Lib/plat-mac/macerrors.py4
-rw-r--r--Lib/plat-mac/macostools.py3
-rw-r--r--Lib/plat-mac/macresource.py3
-rw-r--r--Lib/plat-mac/pimp.py4
-rw-r--r--Lib/plat-mac/terminalcommand.py3
-rw-r--r--Lib/plat-mac/videoreader.py5
35 files changed, 123 insertions, 6 deletions
diff --git a/Lib/plat-mac/Audio_mac.py b/Lib/plat-mac/Audio_mac.py
index fd96095..3c8a74c 100644
--- a/Lib/plat-mac/Audio_mac.py
+++ b/Lib/plat-mac/Audio_mac.py
@@ -1,6 +1,9 @@
QSIZE = 100000
error='Audio_mac.error'
+from warnings import warnpy3k
+warnpy3k("In 3.x, the Play_Audio_mac module is removed.")
+
class Play_Audio_mac:
def __init__(self, qsize=QSIZE):
diff --git a/Lib/plat-mac/Carbon/__init__.py b/Lib/plat-mac/Carbon/__init__.py
index 8018c18..664dcec 100644
--- a/Lib/plat-mac/Carbon/__init__.py
+++ b/Lib/plat-mac/Carbon/__init__.py
@@ -2,3 +2,6 @@
import warnings
warnings.filterwarnings("ignore", "", FutureWarning, ".*Controls")
warnings.filterwarnings("ignore", "", FutureWarning, ".*MacTextEditor")
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, Carbon is removed.")
diff --git a/Lib/plat-mac/EasyDialogs.py b/Lib/plat-mac/EasyDialogs.py
index 3cafbb7..f3d7e78 100644
--- a/Lib/plat-mac/EasyDialogs.py
+++ b/Lib/plat-mac/EasyDialogs.py
@@ -18,6 +18,9 @@ This module uses DLOG resources 260 and on.
Based upon STDWIN dialogs with the same names and functions.
"""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the EasyDialogs module is removed.")
+
from Carbon.Dlg import GetNewDialog, SetDialogItemText, GetDialogItemText, ModalDialog
from Carbon import Qd
from Carbon import QuickDraw
diff --git a/Lib/plat-mac/FrameWork.py b/Lib/plat-mac/FrameWork.py
index 4437cf8..75588a6 100644
--- a/Lib/plat-mac/FrameWork.py
+++ b/Lib/plat-mac/FrameWork.py
@@ -2,6 +2,9 @@
DEBUG=0
+from warnings import warnpy3k
+warnpy3k("In 3.x, the FrameWork module is removed.")
+
import MacOS
import traceback
diff --git a/Lib/plat-mac/MiniAEFrame.py b/Lib/plat-mac/MiniAEFrame.py
index 506c5cb..7d2d5f5 100644
--- a/Lib/plat-mac/MiniAEFrame.py
+++ b/Lib/plat-mac/MiniAEFrame.py
@@ -6,6 +6,9 @@ There are two classes:
only suitable for the simplest of AppleEvent servers.
"""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the MiniAEFrame module is removed.")
+
import traceback
import MacOS
from Carbon import AE
diff --git a/Lib/plat-mac/PixMapWrapper.py b/Lib/plat-mac/PixMapWrapper.py
index 62297b3..45cb5f9 100644
--- a/Lib/plat-mac/PixMapWrapper.py
+++ b/Lib/plat-mac/PixMapWrapper.py
@@ -5,6 +5,10 @@ Python Imaging Library Image object.
J. Strout <joe@strout.net> February 1999"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the PixMapWrapper module is removed.")
+
from Carbon import Qd
from Carbon import QuickDraw
import struct
diff --git a/Lib/plat-mac/aepack.py b/Lib/plat-mac/aepack.py
index d69534f..b849c9d 100644
--- a/Lib/plat-mac/aepack.py
+++ b/Lib/plat-mac/aepack.py
@@ -12,6 +12,9 @@ coerce(x, wanted_sample) coerces a python object to another python object
# Apple Event Registry, chapter 9.
#
+from warnings import warnpy3k
+warnpy3k("In 3.x, the aepack module is removed.")
+
import struct
import types
from types import *
diff --git a/Lib/plat-mac/aetools.py b/Lib/plat-mac/aetools.py
index c277b52..9618b81 100644
--- a/Lib/plat-mac/aetools.py
+++ b/Lib/plat-mac/aetools.py
@@ -21,6 +21,9 @@ files: the pack stuff from aepack, the objects from aetypes.
"""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the aetools module is removed.")
+
from types import *
from Carbon import AE
from Carbon import Evt
diff --git a/Lib/plat-mac/aetypes.py b/Lib/plat-mac/aetypes.py
index 65b59ad..c6c9026 100644
--- a/Lib/plat-mac/aetypes.py
+++ b/Lib/plat-mac/aetypes.py
@@ -1,5 +1,8 @@
"""aetypes - Python objects representing various AE types."""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the aetypes module is removed.")
+
from Carbon.AppleEvents import *
import struct
from types import *
diff --git a/Lib/plat-mac/applesingle.py b/Lib/plat-mac/applesingle.py
index 76bdb06..0e2cf91 100644
--- a/Lib/plat-mac/applesingle.py
+++ b/Lib/plat-mac/applesingle.py
@@ -1,5 +1,9 @@
r"""Routines to decode AppleSingle files
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the applesingle module is removed.")
+
import struct
import sys
try:
diff --git a/Lib/plat-mac/appletrawmain.py b/Lib/plat-mac/appletrawmain.py
index 1be9187..7fc51d8 100644
--- a/Lib/plat-mac/appletrawmain.py
+++ b/Lib/plat-mac/appletrawmain.py
@@ -4,6 +4,10 @@
# This script is put into __rawmain__.pyc for applets that need argv
# emulation, by BuildApplet and friends.
#
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the appletrawmain module is removed.")
+
import argvemulator
import os
import sys
diff --git a/Lib/plat-mac/appletrunner.py b/Lib/plat-mac/appletrunner.py
index 8d46c2a..b47fa42 100755
--- a/Lib/plat-mac/appletrunner.py
+++ b/Lib/plat-mac/appletrunner.py
@@ -3,6 +3,9 @@
# BuildApplet will use it as the main executable in the .app bundle if
# we are not running in a framework build.
+from warnings import warnpy3k
+warnpy3k("In 3.x, appletrunner is removed.")
+
import os
import sys
for name in ["__rawmain__.py", "__rawmain__.pyc", "__main__.py", "__main__.pyc"]:
diff --git a/Lib/plat-mac/argvemulator.py b/Lib/plat-mac/argvemulator.py
index 2d66f1c..1bc5da6 100644
--- a/Lib/plat-mac/argvemulator.py
+++ b/Lib/plat-mac/argvemulator.py
@@ -2,6 +2,9 @@
want unix-style arguments.
"""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the argvemulator module is removed.")
+
import sys
import traceback
from Carbon import AE
diff --git a/Lib/plat-mac/bgenlocations.py b/Lib/plat-mac/bgenlocations.py
index 271eb3e..7643e4b 100644
--- a/Lib/plat-mac/bgenlocations.py
+++ b/Lib/plat-mac/bgenlocations.py
@@ -7,6 +7,9 @@
import os
+from warnings import warnpy3k
+warnpy3k("In 3.x, the bgenlocations module is removed.")
+
Error = "bgenlocations.Error"
#
# Where bgen is. For unix-Python bgen isn't installed, so you have to refer to
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py
index 7462d95..0081e65 100644
--- a/Lib/plat-mac/buildtools.py
+++ b/Lib/plat-mac/buildtools.py
@@ -1,5 +1,9 @@
"""tools for BuildApplet and BuildApplication"""
+import warnings
+warnings.warn("the buildtools module is deprecated and is removed in 3.0",
+ DeprecationWarning, 2)
+
import sys
import os
import string
@@ -14,9 +18,6 @@ import macresource
import EasyDialogs
import shutil
-import warnings
-warnings.warn("the buildtools module is deprecated", DeprecationWarning, 2)
-
BuildError = "BuildError"
diff --git a/Lib/plat-mac/bundlebuilder.py b/Lib/plat-mac/bundlebuilder.py
index 266b845..46c17df 100755
--- a/Lib/plat-mac/bundlebuilder.py
+++ b/Lib/plat-mac/bundlebuilder.py
@@ -28,6 +28,9 @@ this model:
__all__ = ["BundleBuilder", "BundleBuilderError", "AppBuilder", "buildapp"]
+from warnings import warnpy3k
+warnpy3k("In 3.x, the bundlebuilder module is removed.")
+
import sys
import os, errno, shutil
import imp, marshal
diff --git a/Lib/plat-mac/cfmfile.py b/Lib/plat-mac/cfmfile.py
index 91ab0a6..309af87 100644
--- a/Lib/plat-mac/cfmfile.py
+++ b/Lib/plat-mac/cfmfile.py
@@ -5,15 +5,16 @@
__version__ = "0.8b3"
__author__ = "jvr"
+import warnings
+warnings.warn("the cfmfile module is deprecated and is removed in 3,0",
+ DeprecationWarning, 2)
+
import Carbon.File
import struct
from Carbon import Res
import os
import sys
-import warnings
-warnings.warn("the cfmfile module is deprecated", DeprecationWarning, 2)
-
DEBUG = 0
error = "cfm.error"
diff --git a/Lib/plat-mac/findertools.py b/Lib/plat-mac/findertools.py
index 34dde9a..038ee09 100644
--- a/Lib/plat-mac/findertools.py
+++ b/Lib/plat-mac/findertools.py
@@ -14,6 +14,10 @@ So bottom line: the processes() stuff does not work on < MacOS9
Mostly written by erik@letterror.com
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the findertools module is removed.")
+
import Finder
from Carbon import AppleEvents
import aetools
diff --git a/Lib/plat-mac/gensuitemodule.py b/Lib/plat-mac/gensuitemodule.py
index 033bf9e..c92d1eb 100644
--- a/Lib/plat-mac/gensuitemodule.py
+++ b/Lib/plat-mac/gensuitemodule.py
@@ -6,6 +6,9 @@ Based on aete.py.
Reading and understanding this code is left as an exercise to the reader.
"""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the gensuitemodule module is removed.")
+
import MacOS
import EasyDialogs
import os
diff --git a/Lib/plat-mac/ic.py b/Lib/plat-mac/ic.py
index 46788c9..beb8226 100644
--- a/Lib/plat-mac/ic.py
+++ b/Lib/plat-mac/ic.py
@@ -1,5 +1,8 @@
"""IC wrapper module, based on Internet Config 1.3"""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the ic module is removed.")
+
import icglue
import string
import sys
diff --git a/Lib/plat-mac/icopen.py b/Lib/plat-mac/icopen.py
index eea6083..7b8e8f3 100644
--- a/Lib/plat-mac/icopen.py
+++ b/Lib/plat-mac/icopen.py
@@ -37,6 +37,9 @@ The next time you launch PythonInterpreter or Python IDE, the patch will take
effect.
"""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the icopen module is removed.")
+
import __builtin__
_builtin_open = globals().get('_builtin_open', __builtin__.open)
diff --git a/Lib/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py b/Lib/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py
index 5ef7ca9..89583d3 100644
--- a/Lib/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py
+++ b/Lib/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py
@@ -1,6 +1,10 @@
"""
Package generated from /Volumes/Sap/Applications (Mac OS 9)/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/CodeWarrior IDE 4.2.5
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the CodeWarrior package is removed.")
+
import aetools
Error = aetools.Error
import CodeWarrior_suite
diff --git a/Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py b/Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py
index a9b09b0..8e9438a 100644
--- a/Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py
+++ b/Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py
@@ -1,6 +1,10 @@
"""
Package generated from /Applications/Internet Explorer.app
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the Explorer module is removed.")
+
import aetools
Error = aetools.Error
import Standard_Suite
diff --git a/Lib/plat-mac/lib-scriptpackages/Finder/__init__.py b/Lib/plat-mac/lib-scriptpackages/Finder/__init__.py
index 8782a4f..8c9b026 100644
--- a/Lib/plat-mac/lib-scriptpackages/Finder/__init__.py
+++ b/Lib/plat-mac/lib-scriptpackages/Finder/__init__.py
@@ -1,6 +1,10 @@
"""
Package generated from /System/Library/CoreServices/Finder.app
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the Finder package is removed.")
+
import aetools
Error = aetools.Error
import Standard_Suite
diff --git a/Lib/plat-mac/lib-scriptpackages/Netscape/__init__.py b/Lib/plat-mac/lib-scriptpackages/Netscape/__init__.py
index 0dc5398..7f0dfe2 100644
--- a/Lib/plat-mac/lib-scriptpackages/Netscape/__init__.py
+++ b/Lib/plat-mac/lib-scriptpackages/Netscape/__init__.py
@@ -1,6 +1,10 @@
"""
Package generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the Netscape package is removed.")
+
import aetools
Error = aetools.Error
import Standard_Suite
diff --git a/Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py b/Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py
index b80e3ba..15e03ec 100644
--- a/Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py
+++ b/Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py
@@ -2,6 +2,10 @@
Package generated from /Volumes/Sap/System Folder/Extensions/AppleScript
Resource aeut resid 0 Standard Event Suites for English
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the StdSuites package is removed.")
+
import aetools
Error = aetools.Error
import Text_Suite
diff --git a/Lib/plat-mac/lib-scriptpackages/SystemEvents/__init__.py b/Lib/plat-mac/lib-scriptpackages/SystemEvents/__init__.py
index 95f985c..8029224 100644
--- a/Lib/plat-mac/lib-scriptpackages/SystemEvents/__init__.py
+++ b/Lib/plat-mac/lib-scriptpackages/SystemEvents/__init__.py
@@ -1,6 +1,10 @@
"""
Package generated from /System/Library/CoreServices/System Events.app
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the SystemEvents package is removed.")
+
import aetools
Error = aetools.Error
import Standard_Suite
diff --git a/Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py b/Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py
index 47b75f2..5aa8a1e 100644
--- a/Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py
+++ b/Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py
@@ -1,6 +1,10 @@
"""
Package generated from /Applications/Utilities/Terminal.app
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the Terminal module is removed.")
+
import aetools
Error = aetools.Error
import Standard_Suite
diff --git a/Lib/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py b/Lib/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py
index 2c722d9..5061204 100644
--- a/Lib/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py
+++ b/Lib/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py
@@ -4,6 +4,10 @@ suites. This is needed because the events and enums in this suite belong
in the Required suite according to the Apple docs, but they often seem to be
in the Standard suite.
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the _builtinSuites module is removed.")
+
import aetools
import builtin_Suite
diff --git a/Lib/plat-mac/macerrors.py b/Lib/plat-mac/macerrors.py
index a7b3fee..9629a0f 100644
--- a/Lib/plat-mac/macerrors.py
+++ b/Lib/plat-mac/macerrors.py
@@ -1,4 +1,8 @@
# -coding=latin1-
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the macerrors module is removed.")
+
svTempDisable = -32768 #svTempDisable
svDisabled = -32640 #Reserve range -32640 to -32768 for Apple temp disables.
fontNotOutlineErr = -32615 #bitmap font passed to routine that does outlines only
diff --git a/Lib/plat-mac/macostools.py b/Lib/plat-mac/macostools.py
index 67bb497..643ba67 100644
--- a/Lib/plat-mac/macostools.py
+++ b/Lib/plat-mac/macostools.py
@@ -4,6 +4,9 @@ mkalias(src, dst) - Create a finder alias 'dst' pointing to 'src'
copy(src, dst) - Full copy of 'src' to 'dst'
"""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the macostools module is removed.")
+
from Carbon import Res
from Carbon import File, Files
import os
diff --git a/Lib/plat-mac/macresource.py b/Lib/plat-mac/macresource.py
index f68ecdc..0a66d76 100644
--- a/Lib/plat-mac/macresource.py
+++ b/Lib/plat-mac/macresource.py
@@ -1,5 +1,8 @@
"""macresource - Locate and open the resources needed for a script."""
+from warnings import warnpy3k
+warnpy3k("In 3.x, the macresource module is removed.")
+
from Carbon import Res
import os
import sys
diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py
index e58f36d..b3138bd 100644
--- a/Lib/plat-mac/pimp.py
+++ b/Lib/plat-mac/pimp.py
@@ -12,6 +12,10 @@ dependencies and installing packages.
There is a minimal main program that works as a command line tool, but the
intention is that the end user will use this through a GUI.
"""
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the pimp module is removed.")
+
import sys
import os
import subprocess
diff --git a/Lib/plat-mac/terminalcommand.py b/Lib/plat-mac/terminalcommand.py
index 480797b..238781a 100644
--- a/Lib/plat-mac/terminalcommand.py
+++ b/Lib/plat-mac/terminalcommand.py
@@ -14,6 +14,9 @@ with a decent input/output window.
# Mac/OSX/PythonLauncher/doscript.m.
#
+from warnings import warnpy3k
+warnpy3k("In 3.x, the terminalcommand module is removed.")
+
import time
import os
from Carbon import AE
diff --git a/Lib/plat-mac/videoreader.py b/Lib/plat-mac/videoreader.py
index 952b919..43027d4 100644
--- a/Lib/plat-mac/videoreader.py
+++ b/Lib/plat-mac/videoreader.py
@@ -5,6 +5,11 @@
#
# Jack Jansen, August 2000
#
+
+from warnings import warnpy3k
+warnpy3k("In 3.x, the videoreader module is removed.")
+
+
import sys
from Carbon import Qt
from Carbon import QuickTime