mirror of https://github.com/python/cpython
minor fix
This commit is contained in:
parent
5050199787
commit
7874b5d88c
|
@ -125,7 +125,7 @@ class TalkTo:
|
||||||
self.target = signature
|
self.target = signature
|
||||||
elif type(signature) == InstanceType and hasattr(signature, '__aepack__'):
|
elif type(signature) == InstanceType and hasattr(signature, '__aepack__'):
|
||||||
self.target = 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)
|
self.target = AE.AECreateDesc(AppleEvents.typeApplSignature, signature)
|
||||||
else:
|
else:
|
||||||
raise TypeError, "signature should be 4-char string or AEDesc"
|
raise TypeError, "signature should be 4-char string or AEDesc"
|
||||||
|
|
Loading…
Reference in New Issue