diff options
author | Dag Sverre Seljebotn <dagss@student.matnat.uio.no> | 2008-05-27 13:15:50 +0200 |
---|---|---|
committer | Dag Sverre Seljebotn <dagss@student.matnat.uio.no> | 2008-05-27 13:15:50 +0200 |
commit | fcccb15f8c4d582c727ec2c79e0705c6afbc7e49 (patch) | |
tree | f10b061f9c443586f47e9f81f9872c702788e551 /Cython/TestUtils.py | |
parent | dd000240e072ddf67759849c09a5edd16d732e96 (diff) | |
download | cython-fcccb15f8c4d582c727ec2c79e0705c6afbc7e49.tar.gz |
Focus on visitors rather than transforms; Transform.py renamed to Visitor.py
Some changes in class hierarchies etc.; transforms no longer has a common
base class and VisitorTransform is a subclass of TreeVisitor rather than
the reverse. Also removed visitor use of get_child_accessors;
child_attrs is accessed directly (because of claims of overengineering :-) ).
--HG--
rename : Cython/Compiler/Transform.py => Cython/Compiler/Visitor.py
Diffstat (limited to 'Cython/TestUtils.py')
-rw-r--r-- | Cython/TestUtils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/TestUtils.py b/Cython/TestUtils.py index cfa0668fb..a8c860b1c 100644 --- a/Cython/TestUtils.py +++ b/Cython/TestUtils.py @@ -8,7 +8,7 @@ from Cython.Compiler.TreeFragment import TreeFragment, strip_common_indent class CythonTest(unittest.TestCase): def assertCode(self, expected, result_tree): writer = CodeWriter() - writer(result_tree) + writer.write(result_tree) result_lines = writer.result.lines expected_lines = strip_common_indent(expected.split("\n")) |