[Python-checkins] python/dist/src/Mac/Lib/lib-scriptpackages/Explorer URL_Suite.py,1.1,1.2

jackjansen@sourceforge.net jackjansen@sourceforge.net
Tue, 23 Apr 2002 14:05:52 -0700


Update of /cvsroot/python/python/dist/src/Mac/Lib/lib-scriptpackages/Explorer
In directory usw-pr-cvs1:/tmp/cvs-serv22605/Python/Mac/Lib/lib-scriptpackages/Explorer

Modified Files:
	URL_Suite.py 
Log Message:
Second part of fix for #493826: regenerated suite modules so errn exists but == 0 doesn't signal an error.

Bugfix candidate.

Index: URL_Suite.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/lib-scriptpackages/Explorer/URL_Suite.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** URL_Suite.py	20 Aug 2000 20:23:58 -0000	1.1
--- URL_Suite.py	23 Apr 2002 21:05:49 -0000	1.2
***************
*** 2,6 ****
  Level 1, version 1
  
! Generated from Macintosh HD:Internet:Internet-programma's:Internet Explorer 4.5-map:Internet Explorer 4.5
  AETE/AEUT resource version 1/0, language 0, script 0
  """
--- 2,6 ----
  Level 1, version 1
  
! Generated from Moes:Applications (Mac OS 9):Internet Explorer 5:Internet Explorer
  AETE/AEUT resource version 1/0, language 0, script 0
  """
***************
*** 19,24 ****
  	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.
  		Keyword argument _attributes: AppleEvent attribute dictionary
  		"""
--- 19,24 ----
  	def GetURL(self, _object, _attributes={}, **_arguments):
  		"""GetURL: Open the URL (and optionally save it to disk)
! 		Required argument: URL to open
! 		Keyword argument to: File into which to save resource located at URL.
  		Keyword argument _attributes: AppleEvent attribute dictionary
  		"""
***************
*** 32,36 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 32,36 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result