]> granicus.if.org Git - python/commitdiff
Add warnings to and deprecated all those Mac modules
authorBenjamin Peterson <benjamin@python.org>
Mon, 12 May 2008 21:42:13 +0000 (21:42 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 12 May 2008 21:42:13 +0000 (21:42 +0000)
59 files changed:
Doc/library/aepack.rst
Doc/library/aetools.rst
Doc/library/aetypes.rst
Doc/library/autogil.rst
Doc/library/binhex.rst
Doc/library/carbon.rst
Doc/library/colorpicker.rst
Doc/library/easydialogs.rst
Doc/library/framework.rst
Doc/library/ic.rst
Doc/library/mac.rst
Doc/library/macos.rst
Doc/library/macostools.rst
Doc/library/plistlib.rst
Doc/library/undoc.rst
Lib/plat-mac/Audio_mac.py
Lib/plat-mac/Carbon/__init__.py
Lib/plat-mac/EasyDialogs.py
Lib/plat-mac/FrameWork.py
Lib/plat-mac/MiniAEFrame.py
Lib/plat-mac/PixMapWrapper.py
Lib/plat-mac/aepack.py
Lib/plat-mac/aetools.py
Lib/plat-mac/aetypes.py
Lib/plat-mac/applesingle.py
Lib/plat-mac/appletrawmain.py
Lib/plat-mac/appletrunner.py
Lib/plat-mac/argvemulator.py
Lib/plat-mac/bgenlocations.py
Lib/plat-mac/buildtools.py
Lib/plat-mac/bundlebuilder.py
Lib/plat-mac/cfmfile.py
Lib/plat-mac/findertools.py
Lib/plat-mac/gensuitemodule.py
Lib/plat-mac/ic.py
Lib/plat-mac/icopen.py
Lib/plat-mac/lib-scriptpackages/CodeWarrior/__init__.py
Lib/plat-mac/lib-scriptpackages/Explorer/__init__.py
Lib/plat-mac/lib-scriptpackages/Finder/__init__.py
Lib/plat-mac/lib-scriptpackages/Netscape/__init__.py
Lib/plat-mac/lib-scriptpackages/StdSuites/__init__.py
Lib/plat-mac/lib-scriptpackages/SystemEvents/__init__.py
Lib/plat-mac/lib-scriptpackages/Terminal/__init__.py
Lib/plat-mac/lib-scriptpackages/_builtinSuites/__init__.py
Lib/plat-mac/macerrors.py
Lib/plat-mac/macostools.py
Lib/plat-mac/macresource.py
Lib/plat-mac/pimp.py
Lib/plat-mac/terminalcommand.py
Lib/plat-mac/videoreader.py
Lib/plistlib.py
Lib/test/test_py3kwarn.py
Mac/Modules/ColorPickermodule.c
Mac/Modules/MacOS.c
Mac/Modules/Nav.c
Mac/Modules/OSATerminology.c
Mac/Modules/autoGIL.c
Mac/Modules/icgluemodule.c
Misc/NEWS

index d8aef6b3c3da7fc1d86c38ce8f6f7421343dc888..798d603eaa6312c579ffcfbffaaa635607113dee 100644 (file)
@@ -5,6 +5,7 @@
 .. module:: aepack
    :platform: Mac
    :synopsis: Conversion between Python variables and AppleEvent data containers.
+   :deprecated:
 .. sectionauthor:: Vincent Marchetti <vincem@en.com>
 .. moduleauthor:: Jack Jansen
 
@@ -13,6 +14,11 @@ variables to AppleEvent descriptors and back (unpacking). Within Python the
 AppleEvent descriptor is handled by Python objects of built-in type
 :class:`AEDesc`, defined in module :mod:`Carbon.AE`.
 
+.. warning::
+
+   This module is removed in 3.0.
+
+
 The :mod:`aepack` module defines the following functions:
 
 
index da427eb713e15d140ccd6f702d282ca69012c0b7..76b5e177fc2de63f1d7eaff0817912b51b22229d 100644 (file)
@@ -5,6 +5,7 @@
 .. module:: aetools
    :platform: Mac
    :synopsis: Basic support for sending Apple Events
+   :deprecated:
 .. sectionauthor:: Jack Jansen <Jack.Jansen@cwi.nl>
 .. moduleauthor:: Jack Jansen
 
@@ -21,6 +22,11 @@ The :mod:`aetools` module itself uses the AppleEvent support provided by the
 manager, see section :ref:`osx-gui-scripts` for details. This restriction may be
 lifted in future releases.
 
+.. warning::
+
+   This module is removed in 3.0.
+
+
 The :mod:`aetools` module defines the following functions:
 
 
index c8c5d809ee807364e5effb8047a9a5f311194a6c..997203e7e5ddee1fec33997af325a0a97eb74c64 100644 (file)
@@ -5,6 +5,7 @@
 .. module:: aetypes
    :platform: Mac
    :synopsis: Python representation of the Apple Event Object Model.
+   :deprecated:
 .. sectionauthor:: Vincent Marchetti <vincem@en.com>
 .. moduleauthor:: Jack Jansen
 
@@ -30,6 +31,12 @@ application for which you have not generated the stub package this module also
 contains object specifiers for a number of common OSA classes such as
 ``Document``, ``Window``, ``Character``, etc.
 
+.. warning::
+
+   This module is removed in 3.0.
+
+
+
 The :mod:`AEObjects` module defines the following classes to represent Apple
 Event descriptor data:
 
index 7625be65a649139f4db2788bfeca4e595bee8a55..ca2622686ec40fee65a18925682810a140c93346 100644 (file)
@@ -5,6 +5,7 @@
 .. module:: autoGIL
    :platform: Mac
    :synopsis: Global Interpreter Lock handling in event loops.
+   :deprecated:
 .. moduleauthor:: Just van Rossum <just@letterror.com>
 
 
@@ -12,6 +13,10 @@ The :mod:`autoGIL` module provides a function :func:`installAutoGIL` that
 automatically locks and unlocks Python's :term:`Global Interpreter Lock` when
 running an event loop.
 
+.. warning::
+
+   This module is removed in 3.0.
+
 
 .. exception:: AutoGILError
 
index 3b0485c1758e67bc1a9dadaa03abbab123cbde20..0049c70953470eef9647d0e2a91d0af87aa3edd2 100644 (file)
@@ -11,6 +11,11 @@ representation of Macintosh files in ASCII.  On the Macintosh, both forks of a
 file and the finder information are encoded (or decoded), on other platforms
 only the data fork is handled.
 
+.. warning::
+
+   In 3.0, special Macintosh support is removed.
+
+
 The :mod:`binhex` module defines the following functions:
 
 
index 886fa824f72d69ad02bed301eff85b7d72d25117..94e0c9a61609d08e39df6f124fe59c32284c063b 100644 (file)
@@ -22,8 +22,9 @@ framework and Qt is in the QuickTime framework. The normal use pattern is ::
 
    from Carbon import AE
 
-**Warning!**  These modules are not yet documented.  If you wish to contribute
-documentation of any of these modules, please get in touch with docs@python.org.
+.. warning::
+
+   The Carbon modules are removed in 3.0.
 
 
 :mod:`Carbon.AE` --- Apple Events
@@ -32,6 +33,7 @@ documentation of any of these modules, please get in touch with docs@python.org.
 .. module:: Carbon.AE
    :platform: Mac
    :synopsis: Interface to the Apple Events toolbox.
+   :deprecated:
 
 
 
@@ -41,6 +43,7 @@ documentation of any of these modules, please get in touch with docs@python.org.
 .. module:: Carbon.AH
    :platform: Mac
    :synopsis: Interface to the Apple Help manager.
+   :deprecated:
 
 
 
@@ -50,6 +53,7 @@ documentation of any of these modules, please get in touch with docs@python.org.
 .. module:: Carbon.App
    :platform: Mac
    :synopsis: Interface to the Appearance Manager.
+   :deprecated:
 
 
 
@@ -59,6 +63,7 @@ documentation of any of these modules, please get in touch with docs@python.org.
 .. module:: Carbon.CF
    :platform: Mac
    :synopsis: Interface to the Core Foundation.
+   :deprecated:
 
 
 The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
@@ -71,6 +76,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.CG
    :platform: Mac
    :synopsis: Interface to Core Graphics.
+   :deprecated:
 
 
 
@@ -80,6 +86,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.CarbonEvt
    :platform: Mac
    :synopsis: Interface to the Carbon Event Manager.
+   :deprecated:
 
 
 
@@ -89,6 +96,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Cm
    :platform: Mac
    :synopsis: Interface to the Component Manager.
+   :deprecated:
 
 
 
@@ -98,6 +106,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Ctl
    :platform: Mac
    :synopsis: Interface to the Control Manager.
+   :deprecated:
 
 
 
@@ -107,6 +116,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Dlg
    :platform: Mac
    :synopsis: Interface to the Dialog Manager.
+   :deprecated:
 
 
 
@@ -116,6 +126,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Evt
    :platform: Mac
    :synopsis: Interface to the classic Event Manager.
+   :deprecated:
 
 
 
@@ -125,6 +136,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Fm
    :platform: Mac
    :synopsis: Interface to the Font Manager.
+   :deprecated:
 
 
 
@@ -134,6 +146,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Folder
    :platform: Mac
    :synopsis: Interface to the Folder Manager.
+   :deprecated:
 
 
 
@@ -143,6 +156,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Help
    :platform: Mac
    :synopsis: Interface to the Carbon Help Manager.
+   :deprecated:
 
 
 
@@ -152,6 +166,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.List
    :platform: Mac
    :synopsis: Interface to the List Manager.
+   :deprecated:
 
 
 
@@ -161,6 +176,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Menu
    :platform: Mac
    :synopsis: Interface to the Menu Manager.
+   :deprecated:
 
 
 
@@ -170,6 +186,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Mlte
    :platform: Mac
    :synopsis: Interface to the MultiLingual Text Editor.
+   :deprecated:
 
 
 
@@ -179,6 +196,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Qd
    :platform: Mac
    :synopsis: Interface to the QuickDraw toolbox.
+   :deprecated:
 
 
 
@@ -188,6 +206,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Qdoffs
    :platform: Mac
    :synopsis: Interface to the QuickDraw Offscreen APIs.
+   :deprecated:
 
 
 
@@ -197,6 +216,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Qt
    :platform: Mac
    :synopsis: Interface to the QuickTime toolbox.
+   :deprecated:
 
 
 
@@ -206,6 +226,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
 .. module:: Carbon.Res
    :platform: Mac
    :synopsis: Interface to the Resource Manager and Handles.
+   :deprecated:
 
 
 
@@ -216,6 +237,7 @@ The ``CFBase``, ``CFArray``, ``CFData``, ``CFDictionary``, ``CFString`` and
    :platform: Mac
    :synopsis: The Scrap Manager provides basic services for implementing cut & paste and
               clipboard operations.
+   :deprecated:
 
 
 This module is only fully available on MacOS9 and earlier under classic PPC
@@ -266,6 +288,7 @@ Manager.  It contains the following functions:
 .. module:: Carbon.Snd
    :platform: Mac
    :synopsis: Interface to the Sound Manager.
+   :deprecated:
 
 
 
@@ -275,6 +298,7 @@ Manager.  It contains the following functions:
 .. module:: Carbon.TE
    :platform: Mac
    :synopsis: Interface to TextEdit.
+   :deprecated:
 
 
 
@@ -284,5 +308,4 @@ Manager.  It contains the following functions:
 .. module:: Carbon.Win
    :platform: Mac
    :synopsis: Interface to the Window Manager.
-
-
+   :deprecated:
index 4244104c1b0428170fc4edf27310f1b4be29745f..e0771acf90b177bf56d6bd8b700d61b81abbceb6 100644 (file)
@@ -5,6 +5,7 @@
 .. module:: ColorPicker
    :platform: Mac
    :synopsis: Interface to the standard color selection dialog.
+   :deprecated:
 .. moduleauthor:: Just van Rossum <just@letterror.com>
 .. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
 
 The :mod:`ColorPicker` module provides access to the standard color picker
 dialog.
 
+.. warning::
+
+   This module is removed in 3.0.
+
 
 .. function:: GetColor(prompt, rgb)
 
index 50b312fcb7567989a731000a878b0065139a4be0..dbda57fba13ec4135e32119e6e3ce8b82beeffbe 100644 (file)
@@ -5,6 +5,7 @@
 .. module:: EasyDialogs
    :platform: Mac
    :synopsis: Basic Macintosh dialogs.
+   :deprecated:
 
 
 The :mod:`EasyDialogs` module contains some simple dialogs for the Macintosh.
@@ -13,6 +14,11 @@ override the :const:`DLOG` resource used for the dialog, provided that the
 dialog items correspond (both type and item number) to those in the default
 :const:`DLOG` resource. See source code for details.
 
+.. warning::
+
+   This module is removed in 3.0.
+
+
 The :mod:`EasyDialogs` module defines the following functions:
 
 
index c665fb70018a2994703a553b328da7bd4cd63ca7..71a07c15bb97871f3ace5e41dbbec2fa32f56f4e 100644 (file)
@@ -5,6 +5,7 @@
 .. module:: FrameWork
    :platform: Mac
    :synopsis: Interactive application framework.
+   :deprecated:
 
 
 The :mod:`FrameWork` module contains classes that together provide a framework
@@ -15,6 +16,10 @@ often be done on various different levels, i.e. to handle clicks in a single
 dialog window in a non-standard way it is not necessary to override the complete
 event handling.
 
+.. warning::
+
+   This module is removed in 3.0.
+
 Work on the :mod:`FrameWork` has pretty much stopped, now that :mod:`PyObjC` is
 available for full Cocoa access from Python, and the documentation describes
 only the most important functionality, and not in the most logical manner at
index d5e03bd4d3b1795689aa5f8c558acc0fe0701090..88d4eee96a17893036545ae05af11f4eb71b82ad 100644 (file)
@@ -5,11 +5,17 @@
 .. module:: ic
    :platform: Mac
    :synopsis: Access to the Mac OS X Internet Config.
+   :deprecated:
 
 
 This module provides access to various internet-related preferences set through
 :program:`System Preferences` or the :program:`Finder`.
 
+.. warning::
+
+   This module is removed in 3.0.
+
+
 .. index:: module: icglue
 
 There is a low-level companion module :mod:`icglue` which provides the basic
index 791eb8132e2e4810032a9dce7cef4201e99d26ab..6d81d74f3660689ac4c99f7d80ae3b3231be1473 100644 (file)
@@ -10,6 +10,10 @@ See the chapters :ref:`mac-scripting` and :ref:`undoc-mac-modules` for more
 modules, and the HOWTO :ref:`using-on-mac` for a general introduction to
 Mac-specific Python programming.
 
+.. warning::
+
+   These modules are deprecated and are removed in 3.0
+
 
 .. toctree::
 
index 543f8686cff520f7c168d7f1193777d2e2e5481e..832dacb6db0cbbd8ed27dce42e222fda70464ca3 100644 (file)
@@ -5,12 +5,17 @@
 .. module:: MacOS
    :platform: Mac
    :synopsis: Access to Mac OS-specific interpreter features.
+   :deprecated:
 
 
 This module provides access to MacOS specific functionality in the Python
 interpreter, such as how the interpreter eventloop functions and the like. Use
 with care.
 
+.. warning::
+
+   This module is removed in 3.0.
+
 Note the capitalization of the module name; this is a historical artifact.
 
 
index 275100e899e4f39a189d7102799f72eb697a0d4c..eae867db1f34142c3c11a3464a9020f9e09b47dc 100644 (file)
@@ -5,6 +5,7 @@
 .. module:: macostools
    :platform: Mac
    :synopsis: Convenience routines for file manipulation.
+   :deprecated:
 
 
 This module contains some convenience routines for file-manipulation on the
@@ -12,6 +13,10 @@ Macintosh. All file parameters can be specified as pathnames, :class:`FSRef` or
 :class:`FSSpec` objects.  This module expects a filesystem which supports forked
 files, so it should not be used on UFS partitions.
 
+.. warning::
+
+   This module is removed in 3.0.
+
 The :mod:`macostools` module defines the following functions:
 
 
index 508f8e8d2a9224bef1efb0f2bf581ee7dae84867..b987a5fa6a182e0cdba9826d23d2faeff2187ce5 100644 (file)
@@ -75,12 +75,22 @@ This module defines the following functions:
     Read a plist from the resource with type *restype* from the resource fork of
     *path*.  Availability: MacOS X.
 
+    .. warning::
+
+       In 3.0, this function is removed.
+
+
 
 .. function:: writePlistToResource(rootObject, path[, restype='plst'[, resid=0]])
 
     Write *rootObject* as a resource with type *restype* to the resource fork of
     *path*.  Availability: MacOS X.
 
+    .. warning::
+
+       In 3.0, this function is removed.
+
+
 
 The following class is available:
 
index 9875a071fffff0ba9938b116fac073bff51e30da..a1b4b259d041a5eab4a79ffa366ed7d860ce08f9 100644 (file)
@@ -80,7 +80,9 @@ Undocumented Mac OS modules
 .. module:: applesingle
    :platform: Mac
    :synopsis: Rudimentary decoder for AppleSingle format files.
+   :deprecated:
 
+.. deprecated:: 2.6
 
 
 :mod:`buildtools` --- Helper module for BuildApplet and Friends
@@ -89,6 +91,7 @@ Undocumented Mac OS modules
 .. module:: buildtools
    :platform: Mac
    :synopsis: Helper module for BuildApplet, BuildApplication and macfreeze.
+   :deprecated:
 
 
 .. deprecated:: 2.4
@@ -99,6 +102,7 @@ Undocumented Mac OS modules
 .. module:: cfmfile
    :platform: Mac
    :synopsis: Code Fragment Resource module.
+   :deprecated:
 
 
 :mod:`cfmfile` is a module that understands Code Fragments and the accompanying
@@ -113,11 +117,14 @@ BuildApplication to combine all plugin modules to a single executable.
 .. module:: icopen
    :platform: Mac
    :synopsis: Internet Config replacement for open().
+   :deprecated:
 
 
 Importing :mod:`icopen` will replace the builtin :meth:`open` with a version
 that uses Internet Config to set file type and creator for new files.
 
+.. deprecated:: 2.6
+
 
 :mod:`macerrors` --- Mac OS Errors
 ----------------------------------
@@ -125,10 +132,13 @@ that uses Internet Config to set file type and creator for new files.
 .. module:: macerrors
    :platform: Mac
    :synopsis: Constant definitions for many Mac OS error codes.
+   :deprecated:
 
 
 :mod:`macerrors` contains constant definitions for many Mac OS error codes.
 
+.. deprecated:: 2.6
+
 
 :mod:`macresource` --- Locate script resources
 ----------------------------------------------
@@ -136,12 +146,15 @@ that uses Internet Config to set file type and creator for new files.
 .. module:: macresource
    :platform: Mac
    :synopsis: Locate script resources.
+   :deprecated:
 
 
 :mod:`macresource` helps scripts finding their resources, such as dialogs and
 menus, without requiring special case code for when the script is run under
 MacPython, as a MacPython applet or under OSX Python.
 
+.. deprecated:: 2.6
+
 
 :mod:`Nav` --- NavServices calls
 --------------------------------
@@ -149,10 +162,13 @@ MacPython, as a MacPython applet or under OSX Python.
 .. module:: Nav
    :platform: Mac
    :synopsis: Interface to Navigation Services.
+   :deprecated:
 
 
 A low-level interface to Navigation Services.
 
+.. deprecated:: 2.6
+
 
 :mod:`PixMapWrapper` --- Wrapper for PixMap objects
 ---------------------------------------------------
@@ -160,12 +176,15 @@ A low-level interface to Navigation Services.
 .. module:: PixMapWrapper
    :platform: Mac
    :synopsis: Wrapper for PixMap objects.
+   :deprecated:
 
 
 :mod:`PixMapWrapper` wraps a PixMap object with a Python object that allows
 access to the fields by name. It also has methods to convert to and from
 :mod:`PIL` images.
 
+.. deprecated:: 2.6
+
 
 :mod:`videoreader` --- Read QuickTime movies
 --------------------------------------------
@@ -173,11 +192,14 @@ access to the fields by name. It also has methods to convert to and from
 .. module:: videoreader
    :platform: Mac
    :synopsis: Read QuickTime movies frame by frame for further processing.
+   :deprecated:
 
 
 :mod:`videoreader` reads and decodes QuickTime movies and passes a stream of
 images to your program. It also provides some support for audio tracks.
 
+.. deprecated:: 2.6
+
 
 :mod:`W` --- Widgets built on :mod:`FrameWork`
 ----------------------------------------------
@@ -185,10 +207,13 @@ images to your program. It also provides some support for audio tracks.
 .. module:: W
    :platform: Mac
    :synopsis: Widgets for the Mac, built on top of FrameWork.
+   :deprecated:
 
 
 The :mod:`W` widgets are used extensively in the :program:`IDE`.
 
+.. deprecated:: 2.6
+
 
 .. _obsolete-modules:
 
index fd96095ad67adf3d8602f7937ef27c970850d699..3c8a74c20c3f00db915bf433d19871928ec18866 100644 (file)
@@ -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):
index 8018c18244d239489a44da471b11037e4fb7c328..664dceccea90ca37f6304ff49f4f2e36a57f594f 100644 (file)
@@ -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.")
index 3cafbb7bf0c100da49e236040bf38c89b2f2a551..f3d7e78cd4832c8ab8527dc557986a2b102e6044 100644 (file)
@@ -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
index 4437cf871af1475a196a015fc000a4dfb7aa044c..75588a6c4f1a02dc2caba17a36fc3875a78bf368 100644 (file)
@@ -2,6 +2,9 @@
 
 DEBUG=0
 
+from warnings import warnpy3k
+warnpy3k("In 3.x, the FrameWork module is removed.")
+
 import MacOS
 import traceback
 
index 506c5cb1a8a43f6d8d9a4733c35955fdbab403ae..7d2d5f598c6d275f1e1fc630d4595cdebfeeaaf1 100644 (file)
@@ -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
index 62297b34c714db5b82e22676dff3259936668bb8..45cb5f964a5fe771dd554ddbfcd7f0baab13c4a6 100644 (file)
@@ -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
index d69534f4a21175a9553e8cef36d5bc7ea2a86c40..b849c9da733e4ff294e03598924ab185efd4b1b6 100644 (file)
@@ -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 *
index c277b52d1d9d1c6a64f9a015ce30e6394b0894a5..9618b81d5f95e120ed71c96af498f3200e668fd2 100644 (file)
@@ -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
index 65b59ad0ca1917c8e69499ff14470429bc83f393..c6c9026cf8e4cc5157046d7f4cfb21c54a3ca66a 100644 (file)
@@ -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 *
index 76bdb0691c85f6a70d05c6bf4c89c5fc62dbfafe..0e2cf912ef1a295e984600a421da67969b492f0b 100644 (file)
@@ -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:
index 1be9187907b9019e992a122fe40f750ef4b0a366..7fc51d8fda2f96a6d75bbd9509b11b18b8d1cbae 100644 (file)
@@ -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
index 8d46c2ad276e9dafe3796ccb14052c80295ce3a0..b47fa424ecf0c8dbad2b8fb6b78dd3deaeb6fb53 100755 (executable)
@@ -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"]:
index 2d66f1c748f55fe562f85eaa5abf0ec15df9e944..1bc5da6d147aecfeb7a297f2fc051073ceb6a69c 100644 (file)
@@ -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
index 271eb3e10a3cf9dc07e61f63457fefec3fd31643..7643e4bae85d6852a2db0dfd192908561197340f 100644 (file)
@@ -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
index 7462d9556c271fe83392542adbac385d96d5d137..0081e65a8f177721f761abc95d6b64da4cb4b091 100644 (file)
@@ -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"
 
index 266b8455a0f45d3d9874bb9c920243eebc4ead56..46c17df6c8f538cc9150db4ae70692826a3668f4 100755 (executable)
@@ -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
index 91ab0a61c82fabe9da093a2adc1d2564298018ec..309af8754a3a4153e627a2a67fd4b7832ba2d7c3 100644 (file)
@@ -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"
index 34dde9a9cf799d78e7be2b2b3da49017b9aaa8b2..038ee09b785c508ebe64787bb7269623d96dfa3f 100644 (file)
@@ -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
index 033bf9e69b96bf204172925de2a5031f47d253e5..c92d1ebe9dd61ea1a0f13b946c5e599a3c1ffdcd 100644 (file)
@@ -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
index 46788c926273df3a0d5e019efb3a6a9aa84020af..beb8226026c409a26beaa84f7b1d73c82d9edb49 100644 (file)
@@ -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
index eea6083797539aae56664254926870cfeb2c36f4..7b8e8f372e727e839c8885fb755c0d6ca8c60309 100644 (file)
@@ -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)
index 5ef7ca964c595292946dbcb6916123b3a3f74aeb..89583d3c17d803a5f4d0dc56eef8e1dcbc95905e 100644 (file)
@@ -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
index a9b09b041dd1ce9b502d112aad9f4bf270ed4da9..8e9438a45bdafb853ba2854855703956b7eaeab1 100644 (file)
@@ -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
index 8782a4f81bb67e65e96051a177fc7c9c8afd44fc..8c9b02691c44d96fdbfc558847e5192c3474bbfd 100644 (file)
@@ -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
index 0dc5398a06bc5b34f8bcf38fcc0650db2d7c98b4..7f0dfe24cefd104572710c4402634afa3caa22cd 100644 (file)
@@ -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
index b80e3bacc289ea420bc99f50f12b70814f6b525f..15e03ec5d5eff0b086b8e4e7f547fcc4141e6258 100644 (file)
@@ -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
index 95f985cccc22ab14ff9dba15e79050883362f47d..8029224fdca878e67bd6a1db817bf97a5b9d8c2c 100644 (file)
@@ -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
index 47b75f2aeba56e636e1db2ba748ece01cda0144b..5aa8a1e7888dd1e9af9028942fdf98593f787580 100644 (file)
@@ -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
index 2c722d9f549f60606a471b75901c502f6c11d938..5061204103c13c8fec92ac44058706c3460905ab 100644 (file)
@@ -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
 
index a7b3feea1048076cc7ee28f3eebca019d5956a07..9629a0f05cd673f784fb171c2ccdb1d05ebe9b8e 100644 (file)
@@ -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
index 67bb4971825df46b86e5e1e32357d4e7ba6562ac..643ba67c08758be87eab284d9703c7afd9438fa5 100644 (file)
@@ -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
index f68ecdc8a8bc395a45496134cc8007679660e4a7..0a66d76ae7720a3a39083fbdbb0067286310e83e 100644 (file)
@@ -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
index e58f36d4ad9c46afeca822b0241b2b3235909d70..b3138bd278814e1b66a74b879d3305a22b6ed019 100644 (file)
@@ -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
index 480797b42aeaeab7168c5fd948bd5637edc39436..238781a247ea71b62f63630b0c68d93f71fdd9da 100644 (file)
@@ -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
index 952b919c33b6452852262fa84f43c6d3e054ada0..43027d4cc3a666fadbb5305cd51b6a1d846ad4e4 100644 (file)
@@ -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
index 0ce533333430d1141951d6a215a0991ab3f684d9..31d1e75fdf815be21e497493eea2826996b78b07 100644 (file)
@@ -62,6 +62,7 @@ import binascii
 import datetime
 from cStringIO import StringIO
 import re
+import warnings
 
 
 def readPlist(pathOrFile):
@@ -113,6 +114,7 @@ def writePlistToString(rootObject):
 def readPlistFromResource(path, restype='plst', resid=0):
     """Read plst resource from the resource fork of path.
     """
+    warnings.warnpy3k("In 3.x, readPlistFromResource is removed.")
     from Carbon.File import FSRef, FSGetResourceForkName
     from Carbon.Files import fsRdPerm
     from Carbon import Res
@@ -127,6 +129,7 @@ def readPlistFromResource(path, restype='plst', resid=0):
 def writePlistToResource(rootObject, path, restype='plst', resid=0):
     """Write 'rootObject' as a plst resource to the resource fork of path.
     """
+    warnings.warnpy3k("In 3.x, writePlistToResource is removed.")
     from Carbon.File import FSRef, FSGetResourceForkName
     from Carbon.Files import fsRdWrPerm
     from Carbon import Res
index 3fa16db6c15279d9ae52348a88b967bf017f3664..39086e9cd95ab8b8e19bb95bc82f16fc050cb93a 100644 (file)
@@ -131,7 +131,19 @@ class TestStdlibRemovals(unittest.TestCase):
     all_platforms = ('audiodev', 'imputil', 'mutex', 'user', 'new', 'rexec',
                         'Bastion', 'compiler', 'dircache', 'fpformat',
                         'ihooks', 'mhlib')
-    inclusive_platforms = {'irix':('pure',)}
+    inclusive_platforms = {'irix' : ('pure',),
+                          'darwin' : ('autoGIL', 'Carbon', 'OSATerminology',
+                                      'icglue', 'Nav', 'MacOS', 'aepack', 'aetools'
+                                      'aetypes', 'applesingle', 'appletrawmain',
+                                      'appletrunner', 'argvemulator', 'bgenlocations',
+                                      'EasyDialogs', 'macerrors', 'macostools',
+                                      'findertools', 'FrameWork', 'ic',
+                                      'gensuitemodule', 'icopen', 'macresource',
+                                      'MiniAEFrame', 'pimp', 'PixMapWrapper',
+                                      'terminalcommand', 'videoreader', '_builtinSuites',
+                                      'CodeWarrior', 'Explorer', 'Finder', 'Netscape',
+                                      'StdSuites', 'SystemEvents', 'Terminal', 'cfmfile',
+                                      'bundlebuilder', 'buildtools', 'ColorPicker')}
     optional_modules = ('bsddb185', 'Canvas', 'dl', 'linuxaudiodev', 'imageop',
                         'sv')
 
index 62b4d5f6417417763eafb8f31dd9e659affb05cf..c29e0a489608a54e3424e62d079333e89d7d0ec2 100644 (file)
@@ -64,6 +64,9 @@ static char cp_module_documentation[] =
 void initColorPicker(void)
 {
        PyObject *m;
+       
+       if (PyErr_WarnPy3k("In 3.x, ColorPicker is removed.", 1) < 0)
+               return;
 
        /* Create the module and add the functions */
        m = Py_InitModule4("ColorPicker", cp_methods,
index 3fe6e0dbe39fafc2b93cf1b336673abc6a85a060..becb4b18f292b09954737a234052cf31fff59d26 100644 (file)
@@ -603,6 +603,9 @@ initMacOS(void)
 {
        PyObject *m, *d;
        
+       if (PyErr_WarnPy3k("In 3.x, MacOS is removed.", 1))
+               return;
+       
        m = Py_InitModule("MacOS", MacOS_Methods);
        d = PyModule_GetDict(m);
        
index 6786ea029cb3508041202514acb361f65920f30f..3d3914fab4f734513b64f12fc5302fde90cac48c 100644 (file)
@@ -916,6 +916,9 @@ void
 initNav(void)
 {
        PyObject *m, *d;
+       
+       if (PyErr_WarnPy3k("In 3.x, Nav is removed.", 1))
+               return;
 
        /* Test that we have NavServices */
        if ( !NavServicesAvailable() ) {
index 85ad425717477a2e44e1f5d9e0abe427dd819247..66fb969072d9a77321f16ffece1ac9a5a94141f5 100644 (file)
@@ -89,5 +89,7 @@ static struct PyMethodDef OSATerminology_methods[] =
 void
 initOSATerminology(void)
 {
+       if (PyErr_WarnPy3k("In 3.x, OSATerminology is removed.", 1) < 0)
+               return;
        Py_InitModule("OSATerminology", OSATerminology_methods);
 }
\ No newline at end of file
index 31088164ca6a2d16754ff77d61fe29e93e3b52ac..af2e6998b9c31b8831ea9e5d9bdbfc98563abfba 100644 (file)
@@ -134,6 +134,9 @@ initautoGIL(void)
 {
        PyObject *mod;
 
+       if (PyErr_WarnPy3k("In 3.x, the autoGIL module is removed.", 1) < 0)
+               return;
+
        mod = Py_InitModule4("autoGIL", autoGIL_methods, autoGIL_docs,
                             NULL, PYTHON_API_VERSION);
        if (mod == NULL)
index fa50f0d4631999d628966b6668951756dcb6e6e4..d995f1619adfa25b59d327b5393eb0bdfd82c5b6 100644 (file)
@@ -453,6 +453,9 @@ void
 initicglue(void)
 {
        PyObject *m, *d;
+       
+       if (PyErr_WarnPy3k("In 3.x, icglue is removed.", 1))
+               return;
 
        /* Create the module and add the functions */
        m = Py_InitModule4("icglue", ic_methods,
index d250f70e16d5e2836d046a63adc336d03b26893a..123e2dc6391b2a39321513aecde0df9bb7e5c333 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -91,6 +91,9 @@ Library
 
 - pdb gained the "until" command.
 
+- The Mac Modules (including Carbon) have been deprecated for removal in
+  3.0.
+
 Build
 -----