diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-23 21:08:54 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-04-23 21:08:54 (GMT) |
commit | 95df3fd15933dafbb2f1140d011794cc8ccbdc76 (patch) | |
tree | ae7faa5a51767c127cf9e3e60f3247e77f1c758a /Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py | |
parent | 18983536dcb1b430934f345dc1d95aaadbafa2c0 (diff) | |
download | cpython-95df3fd15933dafbb2f1140d011794cc8ccbdc76.zip cpython-95df3fd15933dafbb2f1140d011794cc8ccbdc76.tar.gz cpython-95df3fd15933dafbb2f1140d011794cc8ccbdc76.tar.bz2 |
Second part of fix for #493826: regenerated suite modules so errn exists but == 0 doesn't signal an error.
Bugfix candidate.
Diffstat (limited to 'Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py')
-rw-r--r-- | Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py b/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py index 820d3f7..4f78802 100644 --- a/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py +++ b/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py @@ -1,7 +1,7 @@ """Suite URL Suite: Standard suite for Uniform Resource Locators Level 1, version 1 -Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5 +Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer AETE/AEUT resource version 1/0, language 0, script 0 """ @@ -18,8 +18,8 @@ class URL_Suite_Events: def GetURL(self, _object, _attributes={}, **_arguments): """GetURL: Open the URL (and optionally save it to disk) - Required argument: The URL - Keyword argument to: Save the resolved URL contents to this file. + Required argument: URL to open + Keyword argument to: File into which to save resource located at URL. Keyword argument _attributes: AppleEvent attribute dictionary """ _code = 'GURL' @@ -31,7 +31,7 @@ class URL_Suite_Events: _reply, _arguments, _attributes = self.send(_code, _subcode, _arguments, _attributes) - if _arguments.has_key('errn'): + if _arguments.get('errn', 0): raise aetools.Error, aetools.decodeerror(_arguments) # XXXX Optionally decode result if _arguments.has_key('----'): |