Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad5dcaf

Browse files
committed
Got rid of obsolete way to get at various toolbox types.
1 parent 77afbc0 commit ad5dcaf

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Mac/Lib/aepack.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@
5757
#
5858
# Some python types we need in the packer:
5959
#
60-
AEDescType = type(AE.AECreateDesc('TEXT', ''))
61-
_sample_fss = macfs.FSSpec(':')
62-
_sample_alias = _sample_fss.NewAliasMinimal()
63-
FSSType = type(_sample_fss)
64-
AliasType = type(_sample_alias)
60+
AEDescType = AE.AEDescType
61+
FSSType = macfs.FSSpecType
62+
AliasType = macfs.AliasType
6563

6664
def pack(x, forcetype = None):
6765
"""Pack a python object into an AE descriptor"""

0 commit comments

Comments
 (0)