Fix some bugs in Tools/scripts/abitype.py.

This commit is contained in:
Serhiy Storchaka 2013-05-17 10:18:40 +03:00
commit e67f8e7419
1 changed files with 3 additions and 3 deletions

View File

@ -126,8 +126,8 @@ typeslots = [
'tp_cache',
'tp_subclasses',
'tp_weaklist',
'tp_del'
'tp_version_tag'
'tp_del',
'tp_version_tag',
]
# Generate a PyType_Spec definition
@ -194,7 +194,7 @@ if __name__ == '__main__':
break
start = m.start()
end = m.end()
name, fields = get_fields(start, m)
name, fields = get_fields(start, end)
tokens[start:end] = [('',make_slots(name, fields))]
# Output result to stdout