changeset 173:9af426685e68

pretty_print: corrected printing of ast.Attributes
author Sigurd Meldgaard <stm@daimi.au.dk>
date Mon, 14 Dec 2009 10:29:11 +0100
parents b57cf4ece1f2
children 0622428b65b2
files pysmcl/pretty_print.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/pretty_print.py	Mon Dec 14 10:27:42 2009 +0100
+++ b/pysmcl/pretty_print.py	Mon Dec 14 10:29:11 2009 +0100
@@ -198,7 +198,7 @@
     elif(isinstance(exp, ast.Attribute)):
         my_precedence = 100
         r = "%s.%s" % (expr_string(exp.value, 1),
-                       exp.identifier)
+                       exp.attr)
     elif(isinstance(exp, ast.Subscript)):
         my_precedence = 21
         r = "%s[%s]" % \