Skip to content

Commit 2d8b57f

Browse files
committed
typeslots.py: Add back code writing null entries
This way the table will be kept in sync if a slot is removed (which shouldn't happen).
1 parent 943174b commit 2d8b57f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/typeslots.py

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def generate_typeslots(out=sys.stdout):
3636
for i in range(1,M):
3737
if i in res:
3838
out.write("%s,\n" % res[i])
39+
else:
40+
out.write("{0, 0},\n")
3941

4042

4143
def main():

0 commit comments

Comments
 (0)