[Python-checkins] CVS: python/dist/src/Doc/tools refcounts.py,1.1,1.2
Fred Drake
python-dev@python.org
Mon, 10 Apr 2000 14:24:29 -0400
Update of /projects/cvsroot/python/dist/src/Doc/tools
In directory seahag.cnri.reston.va.us:/home/fdrake/projects/python/Doc/tools
Modified Files:
refcounts.py
Log Message:
If the refcount field is "null", that's ok; the value will be None.
Index: refcounts.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/tools/refcounts.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** refcounts.py 1999/10/20 21:50:31 1.1
--- refcounts.py 2000/04/10 18:24:26 1.2
***************
*** 1,4 ****
"""Support functions for loading the reference count data file."""
! __version__ = '$Revision: 1.1 $'
import os
--- 1,4 ----
"""Support functions for loading the reference count data file."""
! __version__ = '$Revision: 1.2 $'
import os
***************
*** 34,38 ****
parts = string.split(line, ":", 4)
function, type, arg, refcount, comment = parts
! if refcount:
refcount = int(refcount)
else:
--- 34,40 ----
parts = string.split(line, ":", 4)
function, type, arg, refcount, comment = parts
! if refcount == "null":
! refcount = None
! elif refcount:
refcount = int(refcount)
else: