diff options
author | Georg Brandl <georg@python.org> | 2010-08-02 22:58:25 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-02 22:58:25 (GMT) |
commit | 129435c5d23e3c69250209ba578f974ddaf8e8b7 (patch) | |
tree | 03803303c311ded958b70c3c6d70cd374cb6381b /Tools | |
parent | 6faacd3bba36e682948fe56d481a821270499425 (diff) | |
download | cpython-129435c5d23e3c69250209ba578f974ddaf8e8b7.zip cpython-129435c5d23e3c69250209ba578f974ddaf8e8b7.tar.gz cpython-129435c5d23e3c69250209ba578f974ddaf8e8b7.tar.bz2 |
Make the framer run (still generates wrong code for module creation though.)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/framer/framer/bases.py | 2 | ||||
-rw-r--r-- | Tools/framer/framer/template.py | 2 |
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; |