Commits

Fred Drake  committed 16804b3

If the refcount field is "null", that's ok; the value will be None.

  • Participants
  • Parent commits facc105
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Doc/tools/refcounts.py

             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