From 7874b5d88cdf22154ac29927d9e747fecc1f0b2d Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Sat, 29 Jul 1995 15:31:10 +0000 Subject: minor fix --- Mac/Lib/toolbox/aetools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/Lib/toolbox/aetools.py b/Mac/Lib/toolbox/aetools.py index 565cdec..53d2cbd 100644 --- a/Mac/Lib/toolbox/aetools.py +++ b/Mac/Lib/toolbox/aetools.py @@ -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" -- cgit v0.12