mirror of https://github.com/python/cpython.git
Make the framer run (still generates wrong code for module creation though.)
This commit is contained in:
parent
6faacd3bba
commit
129435c5d2
|
@ -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)
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
|
||||
module_init_start = """\
|
||||
PyMODINIT_FUNC
|
||||
init%(ModuleName)s(void)
|
||||
PyInit_%(ModuleName)s(void)
|
||||
{
|
||||
PyObject *mod;
|
||||
|
||||
|
|
Loading…
Reference in New Issue