# HG changeset patch # User Paul Boddie # Date 1340746726 -7200 # Node ID a2851297e2f06fabe6707d98fb0b28b715188ac9 # Parent c46e8aca4726b4202a8233116c9c2a14cc762b5a Removed name repetition. Added a reminder about report operator pop-up support. diff -r c46e8aca4726 -r a2851297e2f0 micropython/ast.py --- a/micropython/ast.py Fri Jun 22 00:11:51 2012 +0200 +++ b/micropython/ast.py Tue Jun 26 23:38:46 2012 +0200 @@ -173,23 +173,24 @@ # Binary operators. - visitAdd = Helper._visitBinary - visitBitand = Helper._visitBinaryBit - visitBitor = Helper._visitBinaryBit + visitBitand = \ + visitBitor = \ visitBitxor = Helper._visitBinaryBit - visitDiv = Helper._visitBinary - visitFloorDiv = Helper._visitBinary - visitLeftShift = Helper._visitBinary - visitMod = Helper._visitBinary - visitMul = Helper._visitBinary - visitPower = Helper._visitBinary - visitRightShift = Helper._visitBinary + + visitAdd = \ + visitDiv = \ + visitFloorDiv = \ + visitLeftShift = \ + visitMod = \ + visitMul = \ + visitPower = \ + visitRightShift = \ visitSub = Helper._visitBinary # Unary operators. - visitInvert = Helper._visitUnary - visitUnaryAdd = Helper._visitUnary + visitInvert = \ + visitUnaryAdd = \ visitUnarySub = Helper._visitUnary # Logical operators. diff -r c46e8aca4726 -r a2851297e2f0 micropython/report.py --- a/micropython/report.py Fri Jun 22 00:11:51 2012 +0200 +++ b/micropython/report.py Tue Jun 26 23:38:46 2012 +0200 @@ -305,6 +305,7 @@ self._name_link("operator", "operator.%s" % name, name) self.stream.write("\n") self._popup_end() + # NOTE: Handle "is" and "in". self._span_end() if trailing: self.stream.write(" ")