[Python-checkins] CVS: python/dist/src/Mac/Tools/IDE Wtraceback.py,1.3,1.4

Jack Jansen jackjansen@users.sourceforge.net
Thu, 17 May 2001 05:34:54 -0700


Update of /cvsroot/python/python/dist/src/Mac/Tools/IDE
In directory usw-pr-cvs1:/tmp/cvs-serv25764/Python/Mac/Tools/IDE

Modified Files:
	Wtraceback.py 
Log Message:
Fixed macroman<->latin1 conversion. Some characters don't exist in latin1, but at least the roundtrip gives
the correct macroman characters again.

Index: Wtraceback.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Tools/IDE/Wtraceback.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Wtraceback.py	2000/04/09 19:45:38	1.3
--- Wtraceback.py	2001/05/17 12:34:52	1.4
***************
*** 58,62 ****
  		if lineno:
  			charno = charno - 1
! 			text = str(value) + '\rFile: "' + str(filename) + '", line ' + str(lineno) + '\r\r' + line[:charno] + "€" + line[charno:-1]
  		else:
  			text = str(value) + '\rFile: "' + str(filename) + '"'
--- 58,62 ----
  		if lineno:
  			charno = charno - 1
! 			text = str(value) + '\rFile: "' + str(filename) + '", line ' + str(lineno) + '\r\r' + line[:charno] + "‚" + line[charno:-1]
  		else:
  			text = str(value) + '\rFile: "' + str(filename) + '"'
***************
*** 124,131 ****
  		self.w.editbutton.enable(0)
  		
! 		self.w.browselocalsbutton = W.Button((80, -30, 100, 16), "Browse localsŠ", self.browselocals)
  		self.w.browselocalsbutton.enable(0)
  		
! 		self.w.postmortembutton = W.Button((190, -30, 100, 16), "Post mortemŠ", self.postmortem)
  		
  		self.w.setdefaultbutton(self.w.editbutton)
--- 124,131 ----
  		self.w.editbutton.enable(0)
  		
! 		self.w.browselocalsbutton = W.Button((80, -30, 100, 16), "Browse localsƒ", self.browselocals)
  		self.w.browselocalsbutton.enable(0)
  		
! 		self.w.postmortembutton = W.Button((190, -30, 100, 16), "Post mortemƒ", self.postmortem)
  		
  		self.w.setdefaultbutton(self.w.editbutton)