diff options
author | Georg Brandl <georg@python.org> | 2009-01-03 20:55:06 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-01-03 20:55:06 (GMT) |
commit | c62ef8b4d9648c36218cb0142a6395a00c11885e (patch) | |
tree | 74d90ea6215a37553bb1cddfc4c4eddf947958e9 /Doc/library/compiler.rst | |
parent | e92818f58c134549c8820073037a1655330bbea1 (diff) | |
download | cpython-c62ef8b4d9648c36218cb0142a6395a00c11885e.zip cpython-c62ef8b4d9648c36218cb0142a6395a00c11885e.tar.gz cpython-c62ef8b4d9648c36218cb0142a6395a00c11885e.tar.bz2 |
Remove trailing whitespace.
Diffstat (limited to 'Doc/library/compiler.rst')
-rw-r--r-- | Doc/library/compiler.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/compiler.rst b/Doc/library/compiler.rst index e13f7fc..0093518 100644 --- a/Doc/library/compiler.rst +++ b/Doc/library/compiler.rst @@ -559,24 +559,24 @@ to create an instance from a repr, you must import the class names from the >>> import compiler >>> mod = compiler.parseFile("/tmp/doublelib.py") >>> mod - Module('This is an example module.\n\nThis is the docstring.\n', + Module('This is an example module.\n\nThis is the docstring.\n', Stmt([Function(None, 'double', ['x'], [], 0, - 'Return twice the argument', + 'Return twice the argument', Stmt([Return(Mul((Name('x'), Const(2))))]))])) >>> from compiler.ast import * - >>> Module('This is an example module.\n\nThis is the docstring.\n', + >>> Module('This is an example module.\n\nThis is the docstring.\n', ... Stmt([Function(None, 'double', ['x'], [], 0, - ... 'Return twice the argument', + ... 'Return twice the argument', ... Stmt([Return(Mul((Name('x'), Const(2))))]))])) - Module('This is an example module.\n\nThis is the docstring.\n', + Module('This is an example module.\n\nThis is the docstring.\n', Stmt([Function(None, 'double', ['x'], [], 0, - 'Return twice the argument', + 'Return twice the argument', Stmt([Return(Mul((Name('x'), Const(2))))]))])) >>> mod.doc 'This is an example module.\n\nThis is the docstring.\n' >>> for node in mod.node.nodes: ... print node - ... + ... Function(None, 'double', ['x'], [], 0, 'Return twice the argument', Stmt([Return(Mul((Name('x'), Const(2))))])) >>> func = mod.node.nodes[0] |