# HG changeset patch # User Paul Boddie # Date 1327619537 -3600 # Node ID b1831d87557605c935d3b4d67554a630fd8f38d6 # Parent afb855d9921e1b3c4ad39a84d499839b87178771 Added conversion of attribute name collections to permit sorting and improved display. Added display of some missing operations. diff -r afb855d9921e -r b1831d875576 micropython/report.py --- a/micropython/report.py Wed Nov 23 00:13:21 2011 +0100 +++ b/micropython/report.py Fri Jan 27 00:12:17 2012 +0100 @@ -487,6 +487,7 @@ for names, objects in interfaces: if names: + names = list(names) names.sort() self.stream.write("\n") self.stream.write("%s" % (classes, ", ".join(names))) @@ -1031,6 +1032,9 @@ self._span_end() self._span_end() + def visitLeftShift(self, node): + self._visitBinary(node, "lshift", "<<") + visitList = visitAssList def visitListComp(self, node): @@ -1101,6 +1105,9 @@ def visitPower(self, node): self._visitBinary(node, "pow", "**") + def visitRightShift(self, node): + self._visitBinary(node, "rshift", ">>") + def visitSlice(self, node): self._span_start("slice") self.dispatch(node.expr)