From: Fred Drake Date: Mon, 10 Apr 2000 18:24:26 +0000 (+0000) Subject: If the refcount field is "null", that's ok; the value will be None. X-Git-Tag: v1.6a2~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e872de6c70a60af80a45f7929c1f30e0886648a;p=thirdparty%2FPython%2Fcpython.git If the refcount field is "null", that's ok; the value will be None. --- diff --git a/Doc/tools/refcounts.py b/Doc/tools/refcounts.py index 6056328e8456..90f47d061db4 100644 --- a/Doc/tools/refcounts.py +++ b/Doc/tools/refcounts.py @@ -33,7 +33,9 @@ def loadfile(fp): continue parts = string.split(line, ":", 4) function, type, arg, refcount, comment = parts - if refcount: + if refcount == "null": + refcount = None + elif refcount: refcount = int(refcount) else: refcount = None