[Python-checkins] python/dist/src/Doc/tools cvsinfo.py, 1.1,
1.2 refcounts.py, 1.4, 1.5
doerwalter at users.sourceforge.net
doerwalter at users.sourceforge.net
Thu Feb 12 12:35:37 EST 2004
Update of /cvsroot/python/python/dist/src/Doc/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21620/Doc/tools
Modified Files:
cvsinfo.py refcounts.py
Log Message:
Replace backticks with repr() or "%r"
>From SF patch #852334.
Index: cvsinfo.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/cvsinfo.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** cvsinfo.py 6 Oct 2000 16:36:48 -0000 1.1
--- cvsinfo.py 12 Feb 2004 17:35:05 -0000 1.2
***************
*** 79,81 ****
def __repr__(self):
! return "<RepositoryInfo for %s>" % `self.get_cvsroot()`
--- 79,81 ----
def __repr__(self):
! return "<RepositoryInfo for %r>" % self.get_cvsroot()
Index: refcounts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/refcounts.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** refcounts.py 16 Oct 2002 15:27:02 -0000 1.4
--- refcounts.py 12 Feb 2004 17:35:05 -0000 1.5
***************
*** 33,37 ****
parts = line.split(":", 4)
if len(parts) != 5:
! raise ValueError("Not enough fields in " + `line`)
function, type, arg, refcount, comment = parts
if refcount == "null":
--- 33,37 ----
parts = line.split(":", 4)
if len(parts) != 5:
! raise ValueError("Not enough fields in %r" % line)
function, type, arg, refcount, comment = parts
if refcount == "null":
More information about the Python-checkins
mailing list