summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-05-17 07:18:40 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-05-17 07:18:40 (GMT)
commite67f8e7419e58df8a35ddbbdf7ddb82bd085774e (patch)
treef8b3f4a7af73983d8b2634b93c85e08f3eb86bb7 /Tools/scripts
parenta07565da2067794b005030659b8af8c73679fbf5 (diff)
parent369d05a6167fc5b760370f6d9b2ceb66691f8794 (diff)
downloadcpython-e67f8e7419e58df8a35ddbbdf7ddb82bd085774e.zip
cpython-e67f8e7419e58df8a35ddbbdf7ddb82bd085774e.tar.gz
cpython-e67f8e7419e58df8a35ddbbdf7ddb82bd085774e.tar.bz2
Fix some bugs in Tools/scripts/abitype.py.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/abitype.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/scripts/abitype.py b/Tools/scripts/abitype.py
index ab0ba42..d6a74a1 100755
--- a/Tools/scripts/abitype.py
+++ b/Tools/scripts/abitype.py
@@ -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