Commit 5e872de6 authored by Fred Drake's avatar Fred Drake

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

parent 729eca1b
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment