[Python-checkins] python/dist/src/Mac/Lib/lib-scriptpackages/Netscape PowerPlant.py,1.2,1.3

jackjansen@sourceforge.net jackjansen@sourceforge.net
Tue, 23 Apr 2002 14:07:39 -0700


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

Modified Files:
	PowerPlant.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: PowerPlant.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Lib/lib-scriptpackages/Netscape/PowerPlant.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PowerPlant.py	17 May 2001 12:39:27 -0000	1.2
--- PowerPlant.py	23 Apr 2002 21:07:37 -0000	1.3
***************
*** 2,6 ****
  Level 0, version 0
  
! Generated from Macintosh HD:Internet:Internet-programma's:Netscape CommunicatorŽ-map:Netscape CommunicatorŽ
  AETE/AEUT resource version 1/0, language 0, script 0
  """
--- 2,6 ----
  Level 0, version 0
  
! Generated from Moes:Applications (Mac OS 9):Netscape CommunicatorŽ Folder:Netscape CommunicatorŽ
  AETE/AEUT resource version 1/0, language 0, script 0
  """
***************
*** 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
***************
*** 56,60 ****
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.has_key('errn'):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
--- 56,60 ----
  		_reply, _arguments, _attributes = self.send(_code, _subcode,
  				_arguments, _attributes)
! 		if _arguments.get('errn', 0):
  			raise aetools.Error, aetools.decodeerror(_arguments)
  		# XXXX Optionally decode result
***************
*** 63,70 ****
  
  _Enum_dbac = {
! 	'DoNothing' : '\000\000\000\000',	# No debugging action is taken.
! 	'PostAlert' : '\000\000\000\001',	# Post an alert.
! 	'LowLevelDebugger' : '\000\000\000\002',	# Break into the low level debugger (MacsBug).
! 	'SourceDebugger' : '\000\000\000\003',	# Break into the source level debugger (if source debugger is executing).
  }
  
--- 63,70 ----
  
  _Enum_dbac = {
! 	'DoNothing' : '\x00\x00\x00\x00',	# No debugging action is taken.
! 	'PostAlert' : '\x00\x00\x00\x01',	# Post an alert.
! 	'LowLevelDebugger' : '\x00\x00\x00\x02',	# Break into the low level debugger (MacsBug).
! 	'SourceDebugger' : '\x00\x00\x00\x03',	# Break into the source level debugger (if source debugger is executing).
  }