mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
If the refcount field is "null", that's ok; the value will be None.
This commit is contained in:
parent
729eca1b9d
commit
5e872de6c7
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ def loadfile(fp):
|
||||||
continue
|
continue
|
||||||
parts = string.split(line, ":", 4)
|
parts = string.split(line, ":", 4)
|
||||||
function, type, arg, refcount, comment = parts
|
function, type, arg, refcount, comment = parts
|
||||||
if refcount:
|
if refcount == "null":
|
||||||
|
refcount = None
|
||||||
|
elif refcount:
|
||||||
refcount = int(refcount)
|
refcount = int(refcount)
|
||||||
else:
|
else:
|
||||||
refcount = None
|
refcount = None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue