From 369d05a6167fc5b760370f6d9b2ceb66691f8794 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 17 May 2013 10:17:43 +0300 Subject: [PATCH] Fix some bugs in Tools/scripts/abitype.py. --- Tools/scripts/abitype.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/scripts/abitype.py b/Tools/scripts/abitype.py index ab0ba42c36c..d6a74a1fe64 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