diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-02-24 22:48:51 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-02-24 22:48:51 (GMT) |
commit | 636c6fa173aafed8744d7eb8d64b995e01d26790 (patch) | |
tree | a4276e22cc8539a419c90cf7e513eb9a4709d165 /Mac | |
parent | 87d9d230489408e4fb2b5150503fd5e2e89bcdb0 (diff) | |
download | cpython-636c6fa173aafed8744d7eb8d64b995e01d26790.zip cpython-636c6fa173aafed8744d7eb8d64b995e01d26790.tar.gz cpython-636c6fa173aafed8744d7eb8d64b995e01d26790.tar.bz2 |
Backport of 1.3:
Rename the routine to start the target running _start(), with a compatibility
routine start() calling it.
Some suites declare an event start(), which obscures this method, which
causes the class initializer to fail when called with start=1.
Based on bug report and fix suggestion by Jacob Kaplan-Moss.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Lib/aetools.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/Lib/aetools.py b/Mac/Lib/aetools.py index 00ec18a..ba42f03 100644 --- a/Mac/Lib/aetools.py +++ b/Mac/Lib/aetools.py @@ -157,15 +157,19 @@ class TalkTo: else: self.send_timeout = AppleEvents.kAEDefaultTimeout if start: - self.start() + self._start() - def start(self): + def _start(self): """Start the application, if it is not running yet""" try: self.send('ascr', 'noop') except AE.Error: _launch(self.target_signature) + def start(self): + """Deprecated, used _start()""" + self._start() + def newevent(self, code, subcode, parameters = {}, attributes = {}): """Create a complete structure for an apple event""" |