[Python-checkins] cpython (merge 3.3 -> default): Fix some bugs in Tools/scripts/abitype.py.

serhiy.storchaka python-checkins at python.org
Fri May 17 09:19:31 CEST 2013


http://hg.python.org/cpython/rev/27cc0e0b7637
changeset:   83806:27cc0e0b7637
parent:      83804:8bcdd2343bf5
parent:      83805:26531f21bc4c
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Fri May 17 10:18:40 2013 +0300
summary:
  Fix some bugs in Tools/scripts/abitype.py.

files:
  Tools/scripts/abitype.py |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Tools/scripts/abitype.py b/Tools/scripts/abitype.py
--- a/Tools/scripts/abitype.py
+++ b/Tools/scripts/abitype.py
@@ -126,8 +126,8 @@
     '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 @@
             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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list