]> granicus.if.org Git - python/commitdiff
Make script 2-vs-3-agnostic.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 4 Dec 2010 09:08:10 +0000 (09:08 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 4 Dec 2010 09:08:10 +0000 (09:08 +0000)
Objects/typeslots.py

index bcc3196bdfeca590543e4f2f9c2c00bb6b29d0d3..0e6ef1f9b82db9648b3ae92933b69302764f9bd6 100644 (file)
@@ -21,4 +21,4 @@ for line in sys.stdin:
 
 M = max(res.keys())+1
 for i in range(1,M):
-    print "offsetof(PyHeapTypeObject, %s)," % res[i]
+    print("offsetof(PyHeapTypeObject, %s)," % res[i])