Patch #1768976, Fix for failing test_scriptpackages (untested but looks good)

This commit is contained in:
Neal Norwitz 2007-08-07 05:42:45 +00:00
parent e6568694bb
commit f9b95d4dda
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,6 @@ files: the pack stuff from aepack, the objects from aetypes.
"""
from types import *
from Carbon import AE
from Carbon import Evt
from Carbon import AppleEvents
@ -167,11 +166,11 @@ class TalkTo:
self.target_signature = None
if signature is None:
signature = self._signature
if type(signature) == AEDescType:
if isinstance(signature, AEDescType):
self.target = signature
elif hasattr(signature, '__aepack__'):
self.target = signature.__aepack__()
elif type(signature) == StringType and len(signature) == 4:
elif isinstance(signature, str) and len(signature) == 4:
self.target = AE.AECreateDesc(AppleEvents.typeApplSignature, signature)
self.target_signature = signature
else:

View File

@ -524,6 +524,7 @@ Steve Purcell
Brian Quinlan
Anders Qvist
Burton Radons
Antti Rasinen
Eric Raymond
Edward K. Ream
Marc Recht