diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-05-17 07:17:43 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-05-17 07:17:43 (GMT) |
commit | 369d05a6167fc5b760370f6d9b2ceb66691f8794 (patch) | |
tree | 8040c7957124ad102d53b504a3fdfd7ac428c183 | |
parent | e2135c615842183bfbc5733e423ad6c4577af0e6 (diff) | |
download | cpython-369d05a6167fc5b760370f6d9b2ceb66691f8794.zip cpython-369d05a6167fc5b760370f6d9b2ceb66691f8794.tar.gz cpython-369d05a6167fc5b760370f6d9b2ceb66691f8794.tar.bz2 |
Fix some bugs in Tools/scripts/abitype.py.
-rwxr-xr-x | Tools/scripts/abitype.py | 6 |
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 |