Kaydet (Commit) 129435c5 authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 6faacd3b
......@@ -199,7 +199,7 @@ class TypeMetaclass(BaseMetaclass):
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)
......
......@@ -76,7 +76,7 @@ varargs = """\
module_init_start = """\
PyMODINIT_FUNC
init%(ModuleName)s(void)
PyInit_%(ModuleName)s(void)
{
PyObject *mod;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment