]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix some bugs in Tools/scripts/abitype.py.
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 17 May 2013 07:17:43 +0000 (10:17 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 17 May 2013 07:17:43 +0000 (10:17 +0300)
Tools/scripts/abitype.py

index ab0ba42c36cd0063e9825cfb7d3a54feb60abcf1..d6a74a1fe64117c4a44d60e6f55b77f77be58265 100755 (executable)
@@ -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