[Python-checkins] python/dist/src/Tools/bgen/bgen bgenType.py,1.8,1.9

jackjansen@sourceforge.net jackjansen@sourceforge.net
Fri, 12 Apr 2002 06:14:56 -0700


Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory usw-pr-cvs1:/tmp/cvs-serv9747

Modified Files:
	bgenType.py 
Log Message:
Give type name when complaining about using input-only type for output
or v.v.


Index: bgenType.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenType.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** bgenType.py	18 Mar 2002 15:24:22 -0000	1.8
--- bgenType.py	12 Apr 2002 13:14:54 -0000	1.9
***************
*** 116,120 ****
  
  	def passOutput(self, name):
! 		raise RuntimeError, "this type can only be used for input parameters"
  
  class InputOnlyType(InputOnlyMixIn, Type):
--- 116,120 ----
  
  	def passOutput(self, name):
! 		raise RuntimeError, "Type '%s' can only be used for input parameters" % self.typeName
  
  class InputOnlyType(InputOnlyMixIn, Type):
***************
*** 127,131 ****
  
  	def passInput(self, name):
! 		raise RuntimeError, "this type can only be used for output parameters"
  
  class OutputOnlyType(OutputOnlyMixIn, Type):
--- 127,131 ----
  
  	def passInput(self, name):
! 		raise RuntimeError, "Type '%s' can only be used for output parameters" % self.typeName
  
  class OutputOnlyType(OutputOnlyMixIn, Type):