]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
minor fix
authorJack Jansen <jack.jansen@cwi.nl>
Sat, 29 Jul 1995 15:31:10 +0000 (15:31 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Sat, 29 Jul 1995 15:31:10 +0000 (15:31 +0000)
Mac/Lib/toolbox/aetools.py

index 565cdec89b537fb1454c3d7e811548aaa4a3b9f1..53d2cbdf969555e17190d64a1cc5d76a1d8661d1 100644 (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"