changeset 140:eb3a88a91f74

prettyprint: preliminary printing of imports
author Sigurd Meldgaard <stm@daimi.au.dk>
date Mon, 09 Nov 2009 10:10:49 +0100
parents 10d98908dee7
children 63c8b9645058
files pysmcl/pretty_print.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/pretty_print.py	Mon Nov 09 10:09:35 2009 +0100
+++ b/pysmcl/pretty_print.py	Mon Nov 09 10:10:49 2009 +0100
@@ -349,7 +349,8 @@
         assert False, "Not implemented"
 
     def visit_ImportFrom(self, node):
-        assert False, "Not implemented"
+        self.print_indented("import %s from %s at level %d" %
+                            (node.module, node.names, node.level))
 
     def visit_Exec(self, node):
         assert False, "Not implemented"