]> granicus.if.org Git - python/commitdiff
Got rid of obsolete way to get at various toolbox types.
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 30 Mar 2002 23:44:58 +0000 (23:44 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 30 Mar 2002 23:44:58 +0000 (23:44 +0000)
Mac/Lib/aepack.py

index 331a53ee8b46d1013c3d27cef3e79fa17c3f4a87..f58dd33f4a6d5401cf127ace5eaef2148f716c61 100644 (file)
@@ -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"""