minor fix

This commit is contained in:
Jack Jansen 1995-07-29 15:31:10 +00:00
parent 5050199787
commit 7874b5d88c
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class TalkTo:
self.target = signature
elif type(signature) == InstanceType and hasattr(signature, '__aepack__'):
self.target = signature.__aepack__()
elif type(signature) == StringType and len(signature) != 4:
elif type(signature) == StringType and len(signature) == 4:
self.target = AE.AECreateDesc(AppleEvents.typeApplSignature, signature)
else:
raise TypeError, "signature should be 4-char string or AEDesc"