]> granicus.if.org Git - python/commitdiff
If the refcount field is "null", that's ok; the value will be None.
authorFred Drake <fdrake@acm.org>
Mon, 10 Apr 2000 18:24:26 +0000 (18:24 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 10 Apr 2000 18:24:26 +0000 (18:24 +0000)
Doc/tools/refcounts.py

index 6056328e84560595013c0ebba8acc83032e63019..90f47d061db4dd70071b58211db3fd3ffaa24481 100644 (file)
@@ -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