From: Jack Jansen Date: Sat, 30 Mar 2002 23:44:58 +0000 (+0000) Subject: Got rid of obsolete way to get at various toolbox types. X-Git-Tag: v2.3c1~6230 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad5dcafac42018ea2b4eaebb666943625a66e67c;p=python Got rid of obsolete way to get at various toolbox types. --- diff --git a/Mac/Lib/aepack.py b/Mac/Lib/aepack.py index 331a53ee8b..f58dd33f4a 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"""