summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
Diffstat (limited to 'Mac')
-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"""