summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Tools/framer/framer/bases.py2
-rw-r--r--Tools/framer/framer/template.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tools/framer/framer/bases.py b/Tools/framer/framer/bases.py
index 08aacb9..d19b5c9 100644
--- a/Tools/framer/framer/bases.py
+++ b/Tools/framer/framer/bases.py
@@ -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)
diff --git a/Tools/framer/framer/template.py b/Tools/framer/framer/template.py
index 41f9537..e596c1f 100644
--- a/Tools/framer/framer/template.py
+++ b/Tools/framer/framer/template.py
@@ -76,7 +76,7 @@ varargs = """\
module_init_start = """\
PyMODINIT_FUNC
-init%(ModuleName)s(void)
+PyInit_%(ModuleName)s(void)
{
PyObject *mod;