summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-05-17 07:17:43 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-05-17 07:17:43 (GMT)
commit369d05a6167fc5b760370f6d9b2ceb66691f8794 (patch)
tree8040c7957124ad102d53b504a3fdfd7ac428c183
parente2135c615842183bfbc5733e423ad6c4577af0e6 (diff)
downloadcpython-369d05a6167fc5b760370f6d9b2ceb66691f8794.zip
cpython-369d05a6167fc5b760370f6d9b2ceb66691f8794.tar.gz
cpython-369d05a6167fc5b760370f6d9b2ceb66691f8794.tar.bz2
Fix some bugs in Tools/scripts/abitype.py.
-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