# HG changeset patch # User Paul Boddie # Date 1338506790 -7200 # Node ID 9a62ac800aef6896693f48934dc70e399424452c # Parent 3c26bdc2d8e51ec70db30db033c8b652250702e0 Changed the static attribute labelling to use "static" instead of "class". Fixed the "if" expression keyword spacing. diff -r 3c26bdc2d8e5 -r 9a62ac800aef micropython/report.py --- a/micropython/report.py Tue May 29 23:03:44 2012 +0200 +++ b/micropython/report.py Fri Jun 01 01:26:30 2012 +0200 @@ -910,7 +910,7 @@ self._span_end() def visitAssAttr(self, node): - target_names = ["%s%s" % (is_static and "class " or "", target_name) + target_names = ["%s%s" % (is_static and "static " or "", target_name) for target_name, is_static in self.possible_accessor_types(node, defining_users=0)] self._span_start("assattr") self._accessor_start(target_names) @@ -1002,7 +1002,7 @@ self._visitBinary(node, "floordiv", "//") def visitGetattr(self, node): - target_names = ["%s%s" % (is_static and "class " or "", target_name) + target_names = ["%s%s" % (is_static and "static " or "", target_name) for target_name, is_static in self.possible_accessor_types(node, defining_users=0)] self._span_start("getattr") self._accessor_start(target_names) @@ -1053,9 +1053,9 @@ def visitIfExp(self, node): self._span_start("ifexp") self.dispatch(node.then) - self._keyword("if") + self._keyword("if", 1) self.dispatch(node.test) - self._keyword("else") + self._keyword("else", 1) self.dispatch(node.else_) self._span_end()