mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue