summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-03-30 23:44:58 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-03-30 23:44:58 (GMT)
commitad5dcafac42018ea2b4eaebb666943625a66e67c (patch)
tree792d1c1b12a2b6c51876388a52b48790d5530f03
parent77afbc0b3bda315b59a9fc82e9640445cde0c2c2 (diff)
downloadcpython-ad5dcafac42018ea2b4eaebb666943625a66e67c.zip
cpython-ad5dcafac42018ea2b4eaebb666943625a66e67c.tar.gz
cpython-ad5dcafac42018ea2b4eaebb666943625a66e67c.tar.bz2
Got rid of obsolete way to get at various toolbox types.
-rw-r--r--Mac/Lib/aepack.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Mac/Lib/aepack.py b/Mac/Lib/aepack.py
index 331a53e..f58dd33 100644
--- a/Mac/Lib/aepack.py
+++ b/Mac/Lib/aepack.py
@@ -57,11 +57,9 @@ unpacker_coercions = {
#
# Some python types we need in the packer:
#
-AEDescType = type(AE.AECreateDesc('TEXT', ''))
-_sample_fss = macfs.FSSpec(':')
-_sample_alias = _sample_fss.NewAliasMinimal()
-FSSType = type(_sample_fss)
-AliasType = type(_sample_alias)
+AEDescType = AE.AEDescType
+FSSType = macfs.FSSpecType
+AliasType = macfs.AliasType
def pack(x, forcetype = None):
"""Pack a python object into an AE descriptor"""