Make the framer run (still generates wrong code for module creation though.)

This commit is contained in:
Georg Brandl 2010-08-02 22:58:25 +00:00
parent 6faacd3bba
commit 129435c5d2
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ def p(templ, vars=self.__vars):
p(template.type_struct_start)
for s in Slots[:-5]: # XXX
val = self.__slots.get(s, s.default)
ntabs = 4 - (4 + len(val)) / 8
ntabs = 4 - (4 + len(val)) // 8
line = " %s,%s/* %s */" % (val, "\t" * ntabs, s.name)
print(line, file=f)
p(template.type_struct_end)

View File

@ -76,7 +76,7 @@
module_init_start = """\
PyMODINIT_FUNC
init%(ModuleName)s(void)
PyInit_%(ModuleName)s(void)
{
PyObject *mod;