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

This commit is contained in:
Fred Drake 2000-04-10 18:24:26 +00:00
parent 729eca1b9d
commit 5e872de6c7

View 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