summaryrefslogtreecommitdiffstats
path: root/Doc/tools
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-04-10 18:24:26 (GMT)
committerFred Drake <fdrake@acm.org>2000-04-10 18:24:26 (GMT)
commit5e872de6c70a60af80a45f7929c1f30e0886648a (patch)
tree3efbd94537a5f8355cdd0343acfb01c7d32fad3c /Doc/tools
parent729eca1b9d6a18665da8f0f8d89c4f1ed972f371 (diff)
downloadcpython-5e872de6c70a60af80a45f7929c1f30e0886648a.zip
cpython-5e872de6c70a60af80a45f7929c1f30e0886648a.tar.gz
cpython-5e872de6c70a60af80a45f7929c1f30e0886648a.tar.bz2
If the refcount field is "null", that's ok; the value will be None.
Diffstat (limited to 'Doc/tools')
-rw-r--r--Doc/tools/refcounts.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/tools/refcounts.py b/Doc/tools/refcounts.py
index 6056328..90f47d0 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