[Python-checkins] python/dist/src/Demo/tkinter/guido mbox.py, 1.4, 1.5 solitaire.py, 1.4, 1.5

doerwalter at users.sourceforge.net doerwalter at users.sourceforge.net
Thu Feb 12 12:35:36 EST 2004


Update of /cvsroot/python/python/dist/src/Demo/tkinter/guido
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21620/Demo/tkinter/guido

Modified Files:
	mbox.py solitaire.py 
Log Message:
Replace backticks with repr() or "%r"

>From SF patch #852334.


Index: mbox.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/tkinter/guido/mbox.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** mbox.py	27 Nov 1996 19:51:29 -0000	1.4
--- mbox.py	12 Feb 2004 17:35:04 -0000	1.5
***************
*** 254,258 ****
  	n = scanbox.size()
  	for i in range(n):
! 		line = scanbox.get(`i`)
  		if scanparser.match(line) >= 0:
  			num = string.atoi(scanparser.group(1))
--- 254,258 ----
  	n = scanbox.size()
  	for i in range(n):
! 		line = scanbox.get(repr(i))
  		if scanparser.match(line) >= 0:
  			num = string.atoi(scanparser.group(1))

Index: solitaire.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/tkinter/guido/solitaire.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** solitaire.py	30 Dec 1996 16:45:14 -0000	1.4
--- solitaire.py	12 Feb 2004 17:35:04 -0000	1.5
***************
*** 184,188 ****
      def __repr__(self):
  	"""Return a string for debug print statements."""
! 	return "Card(%s, %s)" % (`self.suit`, `self.value`)
  
      def moveto(self, x, y):
--- 184,188 ----
      def __repr__(self):
  	"""Return a string for debug print statements."""
! 	return "Card(%r, %r)" % (self.suit, self.value)
  
      def moveto(self, x, y):




More information about the Python-checkins mailing list