From: Jack Jansen Date: Sat, 29 Jul 1995 15:31:10 +0000 (+0000) Subject: minor fix X-Git-Tag: v1.3b1~142 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7874b5d88cdf22154ac29927d9e747fecc1f0b2d;p=thirdparty%2FPython%2Fcpython.git minor fix --- diff --git a/Mac/Lib/toolbox/aetools.py b/Mac/Lib/toolbox/aetools.py index 565cdec89b53..53d2cbdf9695 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"